View Single Post
Mitchell
~lick~
Join Date: Mar 2010
Old 05-22-2018 , 11:57   Re: Is it possible to keep a timer alive during server hibernation?
Reply With Quote #7

Quote:
Originally Posted by ambn View Post
what i'm lookin for is a sourcemod way to make it right, so do you suggest anything?
GetTime() is a sourcemod function: https://sm.alliedmods.net/new-api/sourcemod/GetTime
From what you explained you really don't need to have a timer do +1 to a variable every day when you can have the start time of the server save to a variable and subtract it from the current time to get the current uptime in seconds.
Mitchell is offline