03.11.2012, 14:40
pawn Код:
//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;
}