Racing car positions - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Racing car positions (
/showthread.php?tid=355680)
Racing car positions -
iTorran - 30.06.2012
How would you suggest I find the position of the cars relative to each other?
(Would need to run on number of laps, as well as position)
AW: Racing car positions -
Nero_3D - 01.07.2012
If you want to know the position of the player and you got three indicator
You need to sort the players
- First after the laps
- Than after the checkpoints
- At last after the distance to their next checkpoint
After each sort you get groups, at the end you need to fit all groups together
It should work like
merge sort, could be pretty hard to script