Checkpoints return an ID?
#2

You're somewhat on the right track.
Try something like this:
pawn Код:
new CheckStatus[MAX_PLAYERS]; //Checkpoint to check the players next checkpoint

public OnPlayerSpawn(playerid)
{
  SetPlayerCheckpoint(...);
  CheckStatus[playerid] = 1;
  return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
  if(CheckStatus[playerid] == 1)
  {
   CheckStatus[playerid] = 2;
   SetPlayerCheckpoint(...);
  }
  //so on and so on
  return 1;
}
Reply


Messages In This Thread
Checkpoints return an ID? - by Abernethy - 28.06.2009, 03:22
Re: Checkpoints return an ID? - by Grim_ - 28.06.2009, 04:14

Forum Jump:


Users browsing this thread: 1 Guest(s)