Restart at a certain time
#1

Okay, so, i seen it on a few servers, if the server time is 12:00 it sends a message saying Restart in 5 minutes, and at 12:05 server would restart, how would i do it?
Reply
#2

make i timer... with exactly that time...
like
pawn Код:
//1000 = 1 sec 10000 = 10 s 60000 = 1m 1440000 = 24m = samptime: 1day
SetTimer("RestartTimer",1440000,1); {
GameTextForAll("Server Restart in 5 minutes",1500,3);
}
SetTimer("GMX",1740000,1); {
SendRconCommand(//command);
} // IT BUGS IT WILL SHUT THE SERVE DOWN IMMEDIATLY
Reply
#3

that method is unreliable. instead, edit your clock to call a callback at 12 o clock.

the callback it will call must be made by you and it should have a timer that is set to 5 minutes that will then call another callback, OnGameModeExit()
Reply
#4

im a lil confussed..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)