Checkpoints
#8

So somthing like this.

pawn Код:
new CheckStatus[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid, 2609.8323,1129.0747,10.6719, 3.0);
    CheckStatus[playerid] = 1;
    return 1;
}


public OnPlayerEnterCheckpoint(playerid)
{
  if(CheckStatus[playerid] == 1)
  {
   SetPlayerPos(playerid, 2587.2661,1146.1643,10.8203);
   CheckStatus[playerid] = 2;
   SetPlayerCheckpoint(playerid, 2587.2661,1146.1643,10.8203, 3.0);
  }

  if(CheckStatus[playerid] == 2)
  {
  SetPlayerPos(playerid, 2609.8323,1129.0747,10.6719);
  CheckStatus[playerid] = 1;
  }
  return 1;
}
Reply


Messages In This Thread
Checkpoints - by 6tynine - 28.06.2009, 18:31
Re: Checkpoints - by Moustafa - 28.06.2009, 18:34
Re: Checkpoints - by 6tynine - 28.06.2009, 18:45
Re: Checkpoints - by Cezar - 28.06.2009, 18:53
Re: Checkpoints - by 6tynine - 28.06.2009, 20:15
Re: Checkpoints - by 6tynine - 28.06.2009, 20:54
Re: Checkpoints - by Grim_ - 28.06.2009, 20:55
Re: Checkpoints - by 6tynine - 28.06.2009, 20:58
Re: Checkpoints - by Grim_ - 28.06.2009, 20:58
Re: Checkpoints - by 6tynine - 28.06.2009, 21:00

Forum Jump:


Users browsing this thread: 4 Guest(s)