13.03.2015, 16:59
Код:
if(pInfo[playerid][Logged] == 1) { new TCount, KMessage[128]; TCount = GetPVarInt(playerid, "CommandSpamCount"); TCount++; SetPVarInt(playerid, "CommandSpamCount", TCount); if(TCount == 3) { GetPlayerName(playerid, KMessage, sizeof(KMessage)); format(KMessage, sizeof(KMessage), "[Anti-Spam]: %s has been kicked for command spamming.", KMessage); SendClientMessageToAll(0xFFFFFFFF, KMessage); print(KMessage); Kick(playerid); } SetTimerEx("ResetCommandCount", SpamLimit, false, "i", playerid); }