SA-MP Forums Archive
FilterScript? event player position 1°,2°...place race in checkpoint - 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: FilterScript? event player position 1°,2°...place race in checkpoint (/showthread.php?tid=297813)



FilterScript? event player position 1°,2°...place race in checkpoint - OFirst - 17.11.2011

Do you have any FS?


Re: FilterScript? event player position 1°,2°...place race in checkpoint - MP2 - 17.11.2011

You need to CLEARLY explain what you want.


Re: FilterScript? event player position 1°,2°...place race in checkpoint - OFirst - 18.11.2011

I need a filterscript that shows the position of the players at the time of the race, who's on first, second and so on. I have a filterscript but not showing the position, and I need help for this script. I need something to use as an example.


Re: FilterScript? event player position 1°,2°...place race in checkpoint - MP2 - 18.11.2011

It's quite a complex thing to make as you have to use distance checks in conjunction with how many checkpoints they've passed through. The basic idea is a loop inside a loop. Set their position to 1st, then loop through all players inside that loop and if that player is closer to the current checkpoint or ahead of them, add one to their position, and repeat.

Sorry if it's not clear - I have code to do this but I'm not prepared to release it.


Re: FilterScript? event player position 1°,2°...place race in checkpoint - OFirst - 18.11.2011

Thanks for the help, but I have a filterscript which is very similar to what you said, I spread CPS on the route and player has to go through them, so that shows who is the first, but I no longer wanted to CPS.

Sorry my bad english, I am Brasillian.