Quote:
Originally Posted by Alpay0098
As Ralfie said: (This code goes below OnPlayerText)
PHP код:
if(IsPlayerFlooding(playerid) && !IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0xFFFFFFFF, "* You only can send message every 2 seconds.");
return 0;
}
You can define IsPlayerFlooding (I think you're done with this ...) in advance.
|
This is an anti spam protection. There should be a limit in the text on the server you're managing.