restart system
#10

Quote:
Originally Posted by SRB
Посмотреть сообщение
give the script when you make the second timer
It's really easy to create a timer Mauzen have given you a clue how to do it, anyways sorry for the late reply was watching a documentary.

pawn Код:
public OnGameModeInit()
{
    SetTimer("AutoRestart", 1000, true);
    return true;
}

forward AutoRestart();
public 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: 1 Guest(s)