28.06.2009, 04:14
You're somewhat on the right track.
Try something like this:
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;
}