Player In Line - 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: Player In Line (
/showthread.php?tid=333492)
Player In Line -
clavador - 11.04.2012
I need help to solve a mathematical problem, which I'm not very good at.
Look at this graphic:
What I need to do is to detect if the players "steps" on that blue line you see. I can't create a zone because it turns into a square.
I know how to calculate the blue line's length, but I don't know how to detect if the player steps on that line.
Any ideas?