Anti-Command-Spam (+rep)
#4

pawn Код:
new SpamCheck[MAX_PLAYERS]; //add at the top of script

SpamCheck[playerid] = GetTickCount(); //add this in every command

    if(GetTickCount() - SpamCheck[playerid] < 3000 && SpamCheck[playerid] != 0) //put this onplayercommandtext - above
    {
        //put any code you want like SendClientMessage - You can use the command after 3 secs
        return false;
    }
Reply


Messages In This Thread
Anti-Command-Spam (+rep) - by Dripac - 26.03.2012, 07:09
Re: Anti-Command-Spam (+rep) - by Reklez - 26.03.2012, 07:14
Re: Anti-Command-Spam (+rep) - by Dripac - 26.03.2012, 07:15
Re: Anti-Command-Spam (+rep) - by Reklez - 26.03.2012, 07:19
Re: Anti-Command-Spam (+rep) - by Dripac - 26.03.2012, 07:21
Re: Anti-Command-Spam (+rep) - by Reklez - 26.03.2012, 07:22
Re: Anti-Command-Spam (+rep) - by Dripac - 26.03.2012, 07:28
Re: Anti-Command-Spam (+rep) - by Reklez - 26.03.2012, 07:31
Re: Anti-Command-Spam (+rep) - by Dripac - 26.03.2012, 07:33
Re: Anti-Command-Spam (+rep) - by Reklez - 26.03.2012, 07:35

Forum Jump:


Users browsing this thread: 1 Guest(s)