[HELP] How to ?
#2

Код:
forward TwelveHourRestart();
forward RestartWarning();

SetTimer("RestartWarning", 1000*60*60*12 - 300000, 0);
SetTimer("TwelveHourRestart", 1000*60*60*12, 0);

public RestartWarning()
{
  SendClientMessageToAll( COLOR_YOU_ADD, "BLAH BLAH, SERVER WILL RESTART IN 5 MINUTES BLAH BLAH");
  return 1;
}
public TwelveHourRestart()
{
  SendRconCommand("gmx");
  return 1;
}
Only thing I'm unsure about is the timer calculations (1000*60*60*12). Goodluck anyway.
Reply


Messages In This Thread
[HELP] How to ? - by johnnyc - 04.05.2010, 09:37
Re: [HELP] How to ? - by Rac3r - 04.05.2010, 09:57
Re: [HELP] How to ? - by johnnyc - 04.05.2010, 10:02

Forum Jump:


Users browsing this thread: 1 Guest(s)