Timer continue working when player offline - 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: Timer continue working when player offline (
/showthread.php?tid=388754)
Timer continue working when player offline -
zyghy - 30.10.2012
I have a timer for expire licence and i want to timer continue working when player offline, on my server timer stop working when player offline.... can help me?
Re: Timer continue working when player offline -
JhnzRep - 30.10.2012
Using a timer for this won't work though, as your probably using a playerids and a player loses his ID after log off. What you need to do is use gettime();.
Re: Timer continue working when player offline -
[HK]Ryder[AN] - 30.10.2012
@JhnzRep
gettime(); gets the time of your computer in hours, minutes, seconds....
Re: Timer continue working when player offline -
JhnzRep - 30.10.2012
No, actually I am pretty sure it returns the unix timestamp.
Re: Timer continue working when player offline -
zyghy - 04.11.2012
bump