03.06.2009, 14:15
unless you want it that you cant spam 3 different commands, than you could just do this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext)
{
spam[playerid]++;
if(spam[playerid] >=3) {
SendClientMessage(playerid, RED, "Stop spamming wait 5 sec.");
SetTimerEx("antispam", 30000, false, "i", playerid);
}
return 0;
}