Antiflood
#1

Hi all,i need a good antiflood.

Example:

If i type 3 times the same word,i will get muted automaticaly
Reply
#2

pawn Код:
new Tickcount[MAX_PLAYERS];

public OnPlayerText(playerid, text[])
{
    if(GetTickCount() - Tickcount[playerid]) < 2000 && TickCount[playerid] != 0)
    {
        SendClientMessage(playerid, COLOR_RED, "Please don't flood.");
        Tickcount[playerid] = GetTickCount();
        return 0;
    }
    Tickcount[playerid] = GetTickCount();
    return 1;
}
Something like that.
Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)