03.11.2012, 13:35
Hello
How to do a system where server restarts in every automatically when it is 04:00 o`clock?
How to do a system where server restarts in every automatically when it is 04:00 o`clock?
//put under gamemode int
SetTimer("RestartServer", 1000, true);//checks to see if its the 4th hour of the day every second
//put at the top
forward RestartServer();
//somewhere at the bottom
public RestartServer()
{
new Hour, Minute, Second;
gettime(Hour, Minute, Second);
if(Hour == 4)
{
SendRconCommand("gmx");
}
return 1;
}