Posts: 591
Threads: 70
Joined: Jun 2009
Reputation:
0
Hi, can somebody help to make a counter for played time of players on my server ? I know that it's better and easier to be made for MySQL but I have problems with it so is there any other way to make it ? I want just when player type /playedtime to see the hours and minutes played on my server.
Posts: 985
Threads: 13
Joined: Sep 2011
Reputation:
0
Store something like this in his user file:
HoursPlayed = 0
And make a timer that increases his HoursPlayed by 1 after an hour has passed.
About the minutes, you will need to do the same as above but make it for 1 minute.
Keep in mind that using alot of timers WILL slow down your server.
Posts: 591
Threads: 70
Joined: Jun 2009
Reputation:
0
Can somebody do it for me ?