05.05.2012, 21:05
Quote:
I have a one second timer with lots of variables like:
Код:
if(HasRobbedRecently[playerid]>=1) { HasRobbedRecently[playerid]--; } |
pawn Код:
new HasRobbedRecently[MAX_PLAYERS];
if((tickcount() - 60000) < HasRobbedRecently[playerid]) return SendClientMessage(playerid, COLOR_RED, "Error, you cannot rob now");// Player has not waited 60 seconds
else
{
// Player has waited 60 seconds...do the robbery
HasRobbedRecently[playerid] = tickcount();
}