Change gamemode time
#5

Quote:
Originally Posted by Don Correlli
Yes, 1 second is 1000 miliseconds.

So, the gamemode restart would look like this:
pawn Код:
forward Timer();
 
public OnGameModeInit()
{
  SetTimer("Timer", 3600000, false); // 3600000 is 1 hour.
  return 1;
}
 
public Timer()
{
  SendRconCommand("gmx");
  return 1;
}
If you want to change to another gamemode then use:
pawn Код:
SendRconCommand("changemode modename");
ok that helps very much, but i have like 5 good gamemods, so how i can make it work with all of them, or do i have to put that in every gamemod...?
Reply


Messages In This Thread
Change gamemode time - by mige - 05.08.2009, 17:16
Re: Change gamemode time - by Correlli - 05.08.2009, 18:03
Re: Change gamemode time - by mige - 05.08.2009, 18:09
Re: Change gamemode time - by Correlli - 05.08.2009, 18:16
Re: Change gamemode time - by mige - 05.08.2009, 18:52
Re: Change gamemode time - by Correlli - 05.08.2009, 23:45

Forum Jump:


Users browsing this thread: 1 Guest(s)