Timer goes on when player is 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 goes on when player is offline (
/showthread.php?tid=420328)
Timer goes on when player is offline -
Gingster - 04.03.2013
Hello,
I have a little question, I have made a little VIP system with expire date, but I want to make the time continues when the player is offline, example:
I made someone donator for 20 seconds.
Timer goes on; 19.. 18.. 17, player quits server for 1 day, timer still continues from 17.. 16.. 15, but I don't want that.
I want this:
Timer goes on; 19.. 18.. 17, player quits server and joins again server within 10 seconds, the timer continues at 7.. 6.. 5.
How do I make that?
Thanks.
Re: Timer goes on when player is offline -
Gingster - 04.03.2013
Sorry for bumping up, but how do I do this?
Re: Timer goes on when player is offline -
Vegas. - 04.03.2013
KillTimer in public OnPlayerDisconnet?
Re: Timer goes on when player is offline -
ProjectGANTON - 04.03.2013
Just make a command, that you put for example uhm, 1 months?
It make a "expiration date", save it on a database then OnPlayerConnect check if today is the expiration date.
More easy. Sorry for bad eng.