SA-MP Forums Archive
Player Total Online time help - 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: Player Total Online time help (/showthread.php?tid=653494)



Player Total Online time help - TadePoleMG - 06.05.2018

Hi guys

You know every admin fliterscripts save player total online time in the format of hours, minutes and seconds.
Can anyone help me to make it as it saves player total online time in the format of years, months, days, hours, minutes and seconds.

Help Me Please guys who watching this post.

Thank you.


Re: Player Total Online time help - TadePoleMG - 06.05.2018

Please help me guys
Kovac help me pls.


Re: Player Total Online time help - CrystalGamer - 06.05.2018

you can make timer for that.
to get player play time and save it


Re: Player Total Online time help - TadePoleMG - 06.05.2018

i save in hours, minutes and secs but i wanted to save players played years, months and days too. How


Re: Player Total Online time help - CrystalGamer - 06.05.2018

you can use gatedate();


Re: Player Total Online time help - TadePoleMG - 06.05.2018

can you give me script pls


Re: Player Total Online time help - CrystalGamer - 06.05.2018

this is not request for script thread


Re: Player Total Online time help - TadePoleMG - 06.05.2018

so how can i get that script


Re: Player Total Online time help - CrystalGamer - 06.05.2018

try yourself , if you not get make it then show us code that much you did then here we are to help you


Re: Player Total Online time help - Maxandmov - 06.05.2018

You can save time played by a player in seconds, to then recalculate it in minutes, hours, days, months and years.

Just some simple maths convenient to anyone who knows Earth's time scaling. DIY, holler at us if you have some difficulties DURING the coding process - it is not that we do not tolerate freeloaders, but we hugely encourage people to try and code themselves to actually learn something, or else it's all useless.