04.06.2017, 15:24
SA-MP timers by default are grossly inaccurate if you're looking for an accurate countdown of jail time left. If you want to use native SA-MP timers, I'd recommend you use a timer fix (which attempt to fix timer inaccuracy). There's plenty, some includes and some plugins. Just search "SA-MP timer fix" in ******. Having two seperate timers for a countdown and for unjail is also inefficient and redudant. Example of how you could combine them:
/
pawn Код:
public _JailTimer(playerid)
{
// subtract jail time --
if(JailTime[playerid] == 0)
{
// release the player
KillTimer(JailTimer[playerid]);
}
return 1;
}