25.11.2016, 23:06
I'm not entirely sure on how to do it but I'd use an array to store the players in every time they pass a checkpoint.
I'm on my phone, but to give you an example:
To get the list, simply do a loop. 0 = first, 1 = second, 2 = third and so on.
Written on phone so it's missing stuff but this is what it comes down to.
I'm on my phone, but to give you an example:
PHP код:
//outside your checkpoint callback
#define MAX_RACE_PARTICIPANTS ( 10 ) // people in the race
new racePositions [MAX_RACE_PARTICIPANTS] ;
// inside your cp callback
new raceCount ;
racePositions [ ++ raceCount] = playerid ;
Written on phone so it's missing stuff but this is what it comes down to.