01.02.2009, 21:34 
	
	
	
		hi, where can i find automatic server restart (with /gmx)
pls help^^
	
	
	
pls help^^
if(strcmp(cmd, "/gmx", true) == 0)
{
   if (IsPlayerAdmin(playerid)) return GameModeExit();
   else return SendClientMessage(playerid, RED, "You are not a admin!");
}
forward gmx();
//ongamemodeint
SetTimer("gmx", 86400000, 1);
// and on the buttom of your script
public gmx()
{
	GameModeExit();
	return 1;
}
 and when it restart?
	SetTimer("RestartServer",1000,1);
public RestartServer()
{
new Hour, Minute, Second;
gettime(Hour, Minute, Second);
if(Hour == 4 && Minute == 0 && Second <= 4) return SendRconCommand("gmx");
return true;
}