Saving 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)
+--- Thread: Saving Timer (
/showthread.php?tid=450303)
Saving Timer -
Mattakil - 12.07.2013
I want to create a few things (jail, leveling system etc) but what I need to know is how to freeze a timer when a player disconnects, then save the timer time. So, what I dont know how to do is get the timer time. If someone could tell me a function or whatever that would be perfect!
(will rep, and using CreateTimerEx, can use Y_Timers?)
Re: Saving Timer -
Mattakil - 12.07.2013
anyyonee?
Re: Saving Timer -
CaveDweller - 12.07.2013
Create a recurring timer when the player joins and destroy it when they leave. Or, just create a timer that runs every second and loops through all players ingame.
Re: Saving Timer -
Mattakil - 12.07.2013
Nevermind, i just had an idea to use a player variable