Hi,
Wondering if anyone has come across a Time Calculator for Oxide Legacy? I'm building a stats system, but would like to include "Total Hours Played on our server: XX"
Anywho, let me know.
Cheers
[DOUBLEPOST=1424302274][/DOUBLEPOST]Just realised that this is in the wrong section...apologies admin![]()
Solved Time played
Discussion in 'Plugin Requests' started by entropy, Feb 18, 2015.
-
You could achieve this by storing the current timestamp in a temp variable when the player connects and subtracting it from the timestamp when a player disconnects to get the time in seconds that the player spend online from connect to disconnect and store that in another variable that you save in the data file (adding it to the other value if present), all you have to do after that is just turning the seconds in a nice time string with weeks, days, hours, minutes
-
+1
-
hey did you ever figure this out? ive been trying to do it aswell
-
I have already have something like that. But can't share tho. It's in my 1 big plugin who contains mostly everything. (Mysql, vips, whitelist, prefixs and so on.)
Use netuser.connectTime on disconnect event and store it somewhere.Last edited by a moderator: Dec 25, 2015 -
i just need help with how many hours played on the server,
-