PlayTime
#3

Use gettime without arguments/parameters when a player logins and store it in a variable. When the player disconnects, use gettime again (without arguments) and subtract (-) from the stored variable. The result will be how many seconds you were in the server so you just add the previous online time and you get the total.

About the convertion: https://sampforum.blast.hk/showthread.php?tid=309778
Reply


Messages In This Thread
PlayTime - by kalanerik99 - 29.11.2013, 17:07
Re: PlayTime - by xVIP3Rx - 29.11.2013, 17:11
Re: PlayTime - by Konstantinos - 29.11.2013, 17:12
Re: PlayTime - by kalanerik99 - 29.11.2013, 17:25
Re: PlayTime - by kalanerik99 - 29.11.2013, 17:33
Re: PlayTime - by xVIP3Rx - 29.11.2013, 17:43
Re: PlayTime - by kalanerik99 - 29.11.2013, 17:47
Re: PlayTime - by Konstantinos - 29.11.2013, 17:48
Re: PlayTime - by kalanerik99 - 29.11.2013, 18:05
Re: PlayTime - by Konstantinos - 29.11.2013, 18:11

Forum Jump:


Users browsing this thread: 2 Guest(s)