SetTimerEx or GetTickCount() ?
#3

No. If you want to add a 1 minute anti-spam to a command, all you need to do is:

pawn Код:
if(GetTickCount()-pLimit[playerid] < 60000) return SendClientMessage(playerid, COLOR_RED, "Please wait before using this command again.");
pLimit[playerid] = GetTickCount();
// Command
Reply


Messages In This Thread
SetTimerEx or GetTickCount() ? - by Richie - 30.01.2012, 15:23
Re: SetTimerEx or GetTickCount() ? - by Jochemd - 30.01.2012, 15:49
Re: SetTimerEx or GetTickCount() ? - by MP2 - 30.01.2012, 16:01
Re: SetTimerEx or GetTickCount() ? - by Richie - 30.01.2012, 16:36
Re: SetTimerEx or GetTickCount() ? - by Vince - 30.01.2012, 16:50
Re: SetTimerEx or GetTickCount() ? - by Roperr - 30.01.2012, 16:59
Re: SetTimerEx or GetTickCount() ? - by jamesbond007 - 30.01.2012, 17:05
Re: SetTimerEx or GetTickCount() ? - by Richie - 30.01.2012, 17:06
Re: SetTimerEx or GetTickCount() ? - by Vince - 30.01.2012, 17:13
Re: SetTimerEx or GetTickCount() ? - by Richie - 30.01.2012, 19:33

Forum Jump:


Users browsing this thread: 2 Guest(s)