19.01.2012, 12:04
Quote:
Ok, let me put this out in pseudo code:
Код:
new racepos[MAX_PLAYERS]; Max player loop if (current player checkpoint > current idx checkpoint) && racepos player != 1 racepos playerid -- else if current player checkpoint < current idx checkpoint racepos playerid ++ else get pos of the active checkpoint get distance of player to checkpoint get distance of idx to checkpoint if (distance player < distance idx) && racepos player != 1 racepos player -- else racepos player ++ |
i m working on pawn code, can u make that in pawn code??