Auto Restart
#5

try this:

pawn Код:
//
public OnPlayerUpdate(playerid)
{
    new Hour, Min, Second;
    gettime(Hour, Min, Second);
    if(Hour == 23 && Min == 59)
    {
        SendRconCommand("gmx");
        SendClientMessageToAll(0xDEEE20FF, "24 hours have passed, the server is restarted.");
    }
    return 1;
}
Reply


Messages In This Thread
Auto Restart - by IvanCroatiaCopy - 29.01.2011, 19:40
Re: Auto Restart - by legodude - 29.01.2011, 20:22
Re: Auto Restart - by alpha500delta - 29.01.2011, 20:35
Re: Auto Restart - by hipy - 31.01.2011, 08:02
Re: Auto Restart - by sergio_xd - 31.01.2011, 13:27
Re: Auto Restart - by Mike Garber - 31.01.2011, 18:31

Forum Jump:


Users browsing this thread: 2 Guest(s)