Antiflood
#2

Theres some good tutorials, let me dig in my old scripts. I'll edit with one.

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;
    }
Reply


Messages In This Thread
Antiflood - by Face9000 - 25.09.2010, 21:14
Re: Antiflood - by ScottCFR - 25.09.2010, 21:22
Re: Antiflood - by Face9000 - 26.09.2010, 06:34
Re: Antiflood - by willsuckformoney - 26.09.2010, 06:36

Forum Jump:


Users browsing this thread: 1 Guest(s)