Race position
#2

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


Messages In This Thread
Race position - by JaKe Elite - 07.12.2016, 12:36
Re: Race position - by Konstantinos - 07.12.2016, 12:46
Re: Race position - by JaKe Elite - 07.12.2016, 13:04
Re: Race position - by Yaa - 07.12.2016, 13:07
Re: Race position - by Konstantinos - 07.12.2016, 13:18
Re: Race position - by JaKe Elite - 07.12.2016, 13:24
Re: Race position - by JaKe Elite - 07.12.2016, 13:38
Re: Race position - by Yaa - 07.12.2016, 13:45
Re: Race position - by Konstantinos - 07.12.2016, 13:45
Re: Race position - by gurmani11 - 07.12.2016, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)