SA-MP Forums Archive
Position. - 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: Position. (/showthread.php?tid=596571)



Position. - suni - 19.12.2015

Hey, can someone show me a example of how to code a race positon counter like 1st/(the amount of players who join the race)? Seems like i can't code my own.


Re: Position. - NourNN - 19.12.2015

you mean that you want to make a check points?


Re: Position. - suni - 20.12.2015

Well no. I mean if someone can show me how to make a race position since i don't know how to code one. You know, when you join a race, you can see what position you are in the race and the amount of racers in the race and this positions are in a textdraw.


Re: Position. - DRIFT_HUNTER - 20.12.2015

Its not that simple as it sounds. First you probably are using checkpoints, so you have to keep track how many checkpoints player passed, depending on that generate preliminary positions, after that rearrange positions for players that have same amount of picked up checkpoints depending distance to next checkpoint. So simply put it, its not just a simple counter, you need to handle many things like position changing, checkpoints count, players leaving server/race, players dying etc...

Nobody is gonna give you full system, my advice is to check Adrenaline Racing GM