Anti Command Spam
#2

pawn Код:
new
    Player_ACS[MAX_PLAYERS];
   
// OnPlayerConnect:
Player_ACS[playerid] = 0;

// in a command you want it:
if (gettime() - Player_ACS[playerid] < 3) return // error about waiting..
// code..
Player_ACS[playerid] = gettime();
Reply


Messages In This Thread
Anti Command Spam - by Blackazur - 21.12.2013, 18:41
Re: Anti Command Spam - by Konstantinos - 21.12.2013, 18:46
AW: Anti Command Spam - by Blackazur - 21.12.2013, 18:50
Re: AW: Anti Command Spam - by Patrick - 21.12.2013, 18:54
Re: Anti Command Spam - by Konstantinos - 21.12.2013, 18:55
AW: Anti Command Spam - by Blackazur - 21.12.2013, 19:04
Re: Anti Command Spam - by Konstantinos - 21.12.2013, 19:08

Forum Jump:


Users browsing this thread: 1 Guest(s)