[HELP] Race Positions
#1

Hello again,

I need help with Racing Positions (Your position in the race)
E.g. 5th/33rd

I've looked around and so far not much help.
I've set up the race and everything.
I have a (new PlayerCPStatus[MAX_PLAYERS] at the top.
Every checkpoint he goes through adds +1 to PlayerCPStatus[MAX_PLAYERS].

Now i have a public timer that checks a function every second.
Goes through every player to check their position in PlayerCPStatus.
Everything works fine except, say if 2 people were in front and both were neck and neck.
They would both have the same number set on PlayerCPStatus.
This would give them both "1st".

So i was thinking of maybe making it so that not only does it judge their position in the race by PlayerCPStatus but also by their distance to the next checkpoint.
But i'm unsure of how to do this, so i need help.

Round it all up i need help with: How do you check for the player closest to the checkpoint and also most far away from the Checkpoint?

Hope you understand my question.
Any help is appreciated, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)