Help with a timer
#2

At top of your FS/GM:

pawn Код:
new BankRobbedLast;
To your command, as soon as the robbing was successful:
pawn Код:
BankRobbedLast = gettime();
To your command, where they try to rob again:
pawn Код:
if(BankRobbedLast+60000 > gettime()) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: The bank has already been robbed in the last 60 minites. Try again later.");

It is much better to use the gettime() function to block an event for a specific amount of time, instead of using timers.
Reply


Messages In This Thread
Help with a timer - by Dark Crow - 15.02.2012, 17:41
Re: Help with a timer - by Jeffry - 15.02.2012, 18:52
Re: Help with a timer - by Roperr - 15.02.2012, 18:57

Forum Jump:


Users browsing this thread: 1 Guest(s)