• Command for Play Time?
    13 replies, posted
Title speaks for itself, anyone know the command for this? i couldn't find it in the wiki.
Play Time? If you mean time since the server started, [b][url=wiki.garrysmod.com/?title=G.CurTime]G.CurTime [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] is what you're looking for.
Actually, there is already a function for this built in: [b][url=wiki.garrysmod.com/?title=Player.TimeConnected]Player.TimeConnected [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
That's connection time since you joined the server, i was looking for overall playtime, from like past connections. I know i would need to create a .txt file, i just need the command to find the time first.
Theres not a command you have to make something to keep track of all the past connection times.
Don't use text files, this kind of statistical info would work much better using the builtin SQL database.
Something like this is already made. [url]http://forums.ulyssesmod.net/index.php/topic,3039.0.html[/url] Maybe take a look at that code.
[QUOTE=MegaJohnny;19777876]Don't use text files, this kind of statistical info would work much better using the builtin SQL database.[/QUOTE] Which is shitty and unoptimised. If you want to use SQL, host a local database on your server box. Otherwise, use GLON in a text file.
I will do it for £10.
[QUOTE=iRzilla;19785179]Combine he may be stupid... Meh. Maybe he'll fall for it.[/QUOTE] I hope he will... :frown:
[QUOTE=CombineGuru;19785162]I will do it for £10.[/QUOTE] I will do it for £20.
Sorry, you need to Log In to post a reply to this thread.