07.12.2016, 12:46
1) Create a variable to count.
2) Loop through players.
3) Skip any player is not in race or if iterator variable is equal to playerid.
4) If current checkpoint of participant is greater to checkpoint of playerid's, increase by 1.
5) If current checkpoint of participant is equal to checkpoint of playerid's and the distance (GetPlayerDistanceFromPoint) from the checkpoint's position of the participant is lower than the playerid's, then increase by 1.
6) Out of the loop, return counter + 1.
2) Loop through players.
3) Skip any player is not in race or if iterator variable is equal to playerid.
4) If current checkpoint of participant is greater to checkpoint of playerid's, increase by 1.
5) If current checkpoint of participant is equal to checkpoint of playerid's and the distance (GetPlayerDistanceFromPoint) from the checkpoint's position of the participant is lower than the playerid's, then increase by 1.
6) Out of the loop, return counter + 1.

