Checkpoints return an ID?
#1

I was wondering if you could make say ..
pawn Код:
new Checkpoint:lalala;

if (CheckpointID == lalala)
{
// effect
}
Please correct me.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)