25.09.2010, 21:14
Someone know a good antiflood?
Example:
I write for 3 times and the 4th times i will get muted.
Thanks
Example:
I write for 3 times and the 4th times i will get muted.
Thanks
SetPVarInt(playerid,"textspam",GetPVarInt(playerid,"textspam")+1);
SetTimerEx("clearspam",5000,false,"d",playerid);
if(GetPVarInt(playerid,"textspam") == 5)
{
AccountInfo[playerid][Mute] = 1;
SendClientMessage(playerid, RED, "You have been muted for spamming!");
}
else if(GetPVarInt(playerid,"textspam") == 4)
{
SendClientMessage(playerid,0xAA3333AA,"stop spamming or you will be muted! (wait 5 seconds)");
return 0;
}