22.06.2011, 10:18
I think it should be like that
since the players who already had this checkpoint are before him
For a real time update you would need to use an timer with distance checks
pawn Код:
//OnPlayerEnterCheckpoint
new
iCount;
foreach(Player, i) {
if(PlayerRaceCheckpoint[i] >= PlayerRaceCheckpoint[playerid])
iCount++;
}
PlayerRaceCheckpoint[playerid]++;
For a real time update you would need to use an timer with distance checks