SA-MP Forums Archive
script question - 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: script question (/showthread.php?tid=184528)



script question - iJumbo - 20.10.2010

hi i want make a played time counter like

name have played 50 years 10 month 1 week 4 days 21 hr 15 minutes

how i can do it?
thx


Re: script question - Sascha - 20.10.2010

save the register date in the players file...

and when you do /age or whatever you get the current date and time with getdate and gettime...
then you check the player's register date and do the currentdate - the registerdate and same with the time...
then you have the time the player played;P...
(basicly .. ofc you need to define a few things for it so it will show the month, etc corretly...)


Re: script question - LarzI - 20.10.2010

Set a var every second and save it to a file.