01.02.2014, 05:57
This methods would work for all kinds of spam.
Put that either in OnPlayerCommandText (for all the commands) or at the PM command.
pawn Код:
if(GetPVarInt(playerid, "lastcommand") > GetTickCount())
{
SendClientMessage(playerid, 0x00FFFFFF, "Slow it down on the commands!");
SetPVarInt(playerid, "lastcommand", GetTickCount()+500);
return 1;
}
SetPVarInt(playerid, "lastcommand", GetTickCount()+500);