[HELP] Unjail countdown
#5

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;
}
/
Reply


Messages In This Thread
[HELP] Unjail countdown - by ThomasEvil - 03.06.2017, 22:52
Re: [HELP] Unjail countdown - by Jefff - 04.06.2017, 00:49
Re: [HELP] Unjail countdown - by ThomasEvil - 04.06.2017, 04:14
Re: [HELP] Unjail countdown - by silverms - 04.06.2017, 09:37
Re: [HELP] Unjail countdown - by Abagail - 04.06.2017, 15:24
Re: [HELP] Unjail countdown - by Jefff - 04.06.2017, 18:03
Re: [HELP] Unjail countdown - by ThomasEvil - 05.06.2017, 05:51
Re: [HELP] Unjail countdown - by ThomasEvil - 05.06.2017, 06:05
Re: [HELP] Unjail countdown - by UHPS - 05.06.2017, 06:14
Re: [HELP] Unjail countdown - by ThomasEvil - 05.06.2017, 06:30

Forum Jump:


Users browsing this thread: 1 Guest(s)