SphereCommunity
Server uptime - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Server uptime (/Thread-Server-uptime)



Server uptime - Leonidas - 09-16-2015 09:27 AM

I'm trying to add a "server uptime" on my webpage. I figured I could just throw an item in the world, have that item count up in seconds, and then get that info from the item. On a server restart the timer would just reset and begin counting again.

How would I manage to add a timer to an item to count forward?


RE: Server uptime - pointhz - 09-16-2015 09:32 AM

Use serv.timeup, like

SRC.SYSMESSAGE The server is up for <eval <eval (<SERV.TIMEUP>+1800)>/3600)> hours.


RE: Server uptime - Leonidas - 09-16-2015 09:34 AM

Lol thanks again man