isplayerinarea - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: isplayerinarea (
/showthread.php?tid=70833)
Re: isplayerinarea -
Headshot1108 - 29.03.2009
Quote:
Originally Posted by ♣ ⓐⓢⓢ
The easiest way is just to go in game in take two corners (of the area) and put it in the right order ... omfg people help yourself
|
how?
Re: isplayerinarea -
Nero_3D - 29.03.2009
you go in game and just go to two corners of your area
Wrong
A _____ _____
| | | |
| | | |
|_____| |_____|
B A B
Right
_____ A A _____
| | | |
| | | |
|_____| |_____|
B B
than save the position of the point from A and B and sort the x, y
X , Y
If we get for example for point A - 234.5, 987.6
and for example for point B - 123.4, 1798.3
we just need to sort it in the right oder (minx, maxx, miny, maxy)
so we get - 123.4, 234.5, 987.6, 1798.3
That should be understandable