SA-MP Forums Archive
jail timer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: jail timer (/showthread.php?tid=274743)



jail timer - tanush - 07.08.2011

Would i get some help how to get a timer when someone in jail like if someone does /time it will SendClientMessage how much minutes they have to be unjailed from admin jail


Re: jail timer - Grim_ - 07.08.2011

Under the /jail command you'll need to set a variable for the player to store the unix timestamp they got jailed on. Then, whenever they use the /time command, compare it by subtracting the unix time to that of the current one. Then you can use the function to convert the returned value to a hour:minuteecond format. All this information can be found in this topic: https://sampforum.blast.hk/showthread.php?tid=254915


Re: jail timer - tanush - 07.08.2011

ahh ok