Anti-Command text
#2

pawn Код:
new cSpam[MAX_PLAYERS];
pawn Код:
forward AntiSpam(playerid);
public AntiSpam(playerid)
{
    if(cSpam(playerid) == 1)
    {
        cSpam[playerid] = 0;
    }
    return 1;
}
At the bottom of OnPlayerCommandText put this:

pawn Код:
cSpam[playerid] = 1;
SetTimerEx("AntiSpam", 3000, 0, "i", playerid);
at the top of OnPlayerCommandText put this:

pawn Код:
if(cSpam[playerid] == 1) return SendClientMessage(playerid, color, "Error message here");
Reply


Messages In This Thread
Anti-Command text - by budelis - 29.07.2011, 14:31
Re: Anti-Command text - by Famalamalam - 29.07.2011, 14:38
Re: Anti-Command text - by Famalamalam - 29.07.2011, 15:05
Re: Anti-Command text - by [DM]Kane - 29.07.2011, 15:06
Re: Anti-Command text - by Gh0sT_ - 29.07.2011, 15:27
Re: Anti-Command text - by rjjj - 29.07.2011, 15:27
Re: Anti-Command text - by Gh0sT_ - 29.07.2011, 15:33
Re: Anti-Command text - by budelis - 29.07.2011, 15:34
Re: Anti-Command text - by Calgon - 29.07.2011, 15:40
Re: Anti-Command text - by Famalamalam - 29.07.2011, 15:41

Forum Jump:


Users browsing this thread: 1 Guest(s)