Ranking system of players in the race
#3

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:

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 
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.
Reply


Messages In This Thread
Ranking system of players in the race - by Marllun - 25.11.2016, 20:30
Re: Ranking system of players in the race - by Marllun - 25.11.2016, 22:47
Re: Ranking system of players in the race - by Dignity - 25.11.2016, 23:06
Re: Ranking system of players in the race - by Marllun - 26.11.2016, 00:03

Forum Jump:


Users browsing this thread: 2 Guest(s)