06.06.2015, 19:37
hey samp forum iam making anti adv but how when player type adv in main chat to stop message (i wont kick/ban them only that he cannt send this massege)?
if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0xFFFFFFFF, "* You only can send message every 2 seconds.");
return 0;
}
As Ralfie said: (This code goes below OnPlayerText)
PHP код:
|
This is an anti spam protection. There should be a limit in the text on the server you're managing.
|