need timer
#8

pawn Код:
new posStep=-1;
public OnGameModeInit()
{
  SetTimer("EndOfRound", 10000, true);
  return 1;
}

forward EndOfRound();
public EndOfRound()
{
  posStep++;
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    if(posStep == 0)
    {
      SetPlayerPos(i, x, y, z);
    }
    else if(posStep == 1)
    {
      SetPlayerPos(i, x, y, z);
    }
    // etc.
  }
  return 1;
}
That will make the timer go off every 1 minute instead, changing the pos of the player depending on the step of which the setPos variable is at.
Reply


Messages In This Thread
need timer - by OmarEco - 16.07.2010, 20:47
Re: need timer - by ViruZZzZ_ChiLLL - 16.07.2010, 20:49
Re: need timer - by OmarEco - 16.07.2010, 20:50
Re: need timer - by OmarEco - 16.07.2010, 20:56
Re: need timer - by OmarEco - 17.07.2010, 09:15
Re: need timer - by Grim_ - 17.07.2010, 09:17
Re: need timer - by OmarEco - 17.07.2010, 09:23
Re: need timer - by Grim_ - 17.07.2010, 09:28
thanks - by OmarEco - 17.07.2010, 10:28

Forum Jump:


Users browsing this thread: 1 Guest(s)