Sigoles
Discord: @sigoles
- Joined
- Nov 20, 2015
- Messages
- 1,209
- Solutions
- 2
- Reaction score
- 154
How I can avoid names above 30 words and avoid symbols, avoid some words like (GOD)?
How if its above 60 seconds, transforms it to show in minutes?
tfs 1.1
thanks
C++:
if (text.substr(0, 5) == "!nick" && text.length() > 6) {
std::string newName = text.substr(6);
if (client) {
g_dispatcher.addTask(createTask(std::bind(&ProtocolGame::broadcastSpectatorMessage, client, "", (spectatorName.empty() ? "spectator" : spectatorName) + " changed nick to " + newName)));
}
spectatorName = newName;
return;
}
How if its above 60 seconds, transforms it to show in minutes?
LUA:
player:sendCancelMessage(string.format("%d seconds to next wave.", math.ceil(player:getStorageValue(90906) - os.time())))
tfs 1.1
thanks