restart system
#6

You could create a 1 second timer, or use OnPlayerUpdate (I do not suggest this)

pawn Код:
public OnPlayerUpdate(playerid)
{
    AutoRestart();
    return true;
}

stock AutoRestart()
{
    new Time[3];
    gettime(Time[0], Time[1], Time[2]);
    if(Time[0] == 24)
    {
        SendRconCommand("gmx");
    }
    else if(Time[0] == 23 && Time[1] == 50) // 10 minutes before 24
    {
        GameTextForPlayer(..); //edit this line to your choice.
    }
}
Reply


Messages In This Thread
restart system - by SRB - 01.01.2014, 22:23
Re: restart system - by Patrick - 01.01.2014, 22:31
Re: restart system - by Mauzen - 01.01.2014, 22:35
Re: restart system - by SRB - 01.01.2014, 23:11
Re: restart system - by SRB - 01.01.2014, 23:16
Re: restart system - by Patrick - 01.01.2014, 23:25
Re: restart system - by SRB - 01.01.2014, 23:34
Re: restart system - by Patrick - 01.01.2014, 23:45
Re: restart system - by SRB - 02.01.2014, 00:46
Re: restart system - by Patrick - 02.01.2014, 01:13

Forum Jump:


Users browsing this thread: 5 Guest(s)