Loading Previous Server Time ?
#1

Hello, I was wondering of how to load the server time from the previous restart

like:

The Server Time was 3 p.m then a Server Restart has been issued, when the server is back it will load the Previous Server Time ( 3 p.m ).

So my question is, how can I make/create that ? MySQL ?
Reply
#2

when the gamemodeexit is called saved the server time in a file.
Then load it back base on file when server starts again.

gettime should be use on this. However, gettime returns your computer time.

I'm not sure if gamemodeexit is called when server restarts, but all i know it gets called when the samp-server.exe is closed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)