SA-MP Forums Archive
[HELP] NetStats_GetConnectedTime - 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: [HELP] NetStats_GetConnectedTime (/showthread.php?tid=527536)



[HELP] NetStats_GetConnectedTime - V4at - 23.07.2014

Hello, actually I want to create a system with time spent by player in server. So now really I don't know where to start. I know this function "NetStats_GetConnectedTime", what do you recommend to use? Anyway I don't know how to save the time in MySQL with this function


Re: [HELP] NetStats_GetConnectedTime - Clad - 23.07.2014

You can create a timer which will start counting time when player logins to his account.


Re: [HELP] NetStats_GetConnectedTime - Vince - 23.07.2014

Quote:
Originally Posted by Clad
Посмотреть сообщение
You can create a timer which will start counting time when player logins to his account.
Or you could use the method outlined by ****** above, which is far more accurate and far less resource intensive.