Timer + Next Map?
#2

You could use the SetTimer function at OnGameModeInit() and when the timer ends, set player's position to some other place(I haven't done derby before).

Example:
pawn Code:
public OnGameModeInit()
{
 SetTimer("MapChange",900000,false); //We've set a 15 minute timer.
 return 1;
}

forward MapChange();

public MapChange() //After 15 mins.
{
 for(new i; i< MAX_PLAYERS; i++) //Looping through players.
 {
  if(IsPlayerConnected(i)) //After looping, we're choosing connected players.
  {
   SetPlayerPos(i,yourposX,yourposY,yourposZ); //Setting all the connected player's position. You've to set the pos.
  }
 }
 return 1;
}
//Just an example.
.
Reply


Messages In This Thread
Timer + Next Map? - by nicholas1 - 28.10.2012, 03:06
Re: Timer + Next Map? - by Lordzy - 28.10.2012, 03:17
Re: Timer + Next Map? - by nicholas1 - 28.10.2012, 03:53
Re: Timer + Next Map? - by doreto - 28.10.2012, 08:30
Re: Timer + Next Map? - by nicholas1 - 28.10.2012, 15:56
Re: Timer + Next Map? - by arvifilter - 28.10.2012, 17:50
Re: Timer + Next Map? - by nicholas1 - 28.10.2012, 20:46

Forum Jump:


Users browsing this thread: 1 Guest(s)