25.09.2010, 21:22
Theres some good tutorials, let me dig in my old scripts. I'll edit with one.
This should work fine.
This should work fine.
pawn Код:
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;
}