Time - 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: Time (
/showthread.php?tid=465908)
Time -
lsreskjn - 24.09.2013
Hello, is there very simple way to save and show players time on server all together? like...lsreskjn - time on server - 200 hours 26 minutes...? thanks
Re: Time -
Dubya - 24.09.2013
You would need to make a system that saves it.
Re: Time -
lsreskjn - 24.09.2013
well thats what im asking for
Re: Time -
JamesH - 25.09.2013
Yes its simple, follow the 4 steps below :
1. Add to your player info variables a variable called "PlayedTime" or choose a name.
2. make a 60 minutes timer that calls a public , if you have paycheck system add it there.
3. Inside the public that you're calling make so the "PlayedTime" variable will increase by 1.
4. make a textdraw that shows that variable with TextDrawSetString.
As for the hours and minutes you will need a stock that caculating the hours.