15.02.2012, 18:52
At top of your FS/GM:
To your command, as soon as the robbing was successful:
To your command, where they try to rob again:
It is much better to use the gettime() function to block an event for a specific amount of time, instead of using timers.
pawn Код:
new BankRobbedLast;
pawn Код:
BankRobbedLast = gettime();
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.
![Wink](images/smilies/wink.png)