Server restart
#3

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;
}
Reply


Messages In This Thread
Server restart - by Larry123 - 03.11.2012, 13:35
Re: Server restart - by DBan - 03.11.2012, 13:49
Re: Server restart - by Glad2BeHere - 03.11.2012, 14:40

Forum Jump:


Users browsing this thread: 1 Guest(s)