restart system
#3

pawn Код:
// in OnGameModeInit()
SetTimer("AutoRestart", 86400000, 0); // 86400000ms = 24 hours

// somewhere else
forward AutoRestart();
public AutoRestart() {
    SendRconCommaned("gmx");
}
Would also work, probably the "cleanest" version, as it doesnt need any other timers or checks.
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: 6 Guest(s)