18.03.2011, 21:01
There's no need to even use a timer for this! Why not just use GetTickCount();?
For example:
No timers and the code is much cleaner! 
P.S: Fix your indentation!
For example:
pawn Код:
new intLastTick[MAX_PLAYERS] = 0;
pawn Код:
if (strcmp("/fix",cmdtext,true) == 0)
{
if((GetTickCount() - intLastTick[playerid]) > 60000)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehicleHealth(GetPlayerVehicleID(playerid),100.000);
SendClientMessage(playerid,COLOR_ADMINS,"You have fixed the vehicle!");
intLastTick[playerid] = GetTickCount();
}
}
return 1;
}

P.S: Fix your indentation!

