16.06.2011, 11:06
Код:
SetPVarInt(playerid,"textspam",GetPVarInt(playerid,"textspam")+1); SetTimerEx("clearspam",5000,false,"d",playerid); if(GetPVarInt(playerid,"textspam") == 5) { new string[128]; new tname[MAX_PLAYER_NAME]; GetPlayerName(playerid,tname,sizeof(tname)); format(string,sizeof(string),"AdmCmd: %s was kicked. Reason: spamming", tname,playerid); SendClientMessageToAll(COLOR_RED,string); CallRemoteFunction("KickIncrease","d",playerid); Kick(playerid); } return 1; }