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



Zone position - Hunud - 17.11.2016

Can someone explain to me this better! GangZone!

[minx] Minimum X (left)
[maxx] Maximum X (right)
[miny] Minimum Y (bottom)
[maxy] Maximum Y (top)

Example created zone!

Quote:

-717.5757,2737.7582,-890.4853,2777.9238




Re: Zone position - Freaksken - 17.11.2016

Quote:
Originally Posted by Hunud
Посмотреть сообщение
Can someone explain to me this better! GangZone!

[minx] Minimum X (left)
[maxx] Maximum X (right)
[miny] Minimum Y (bottom)
[maxy] Maximum Y (top)

Example created zone!
It's the same principle as with SetPlayerWorldBounds. That wiki page has a visualisation.
So the bottom-left corner is (xmin, ymin) and the top-right corner is (xmax, ymax).


Re: Zone position - Hunud - 17.11.2016

Ok thanks but i still dont get it xD "I am Idiot"!


Re: Zone position - Freaksken - 17.11.2016

OK, see the attachment for a visualisation. Say you want a gangzone on area69.So what you need to do: go ingame and travel to the blue dot, save the coordinates with /save. Now you have the minimum coordinates. Then go to the yellow dot in the game and save the coordinates again. Now you have the maximum coordinates as well. And that's about it. PS, you don't need z and a coordinates, just the x and y.


Re: Zone position - Hunud - 17.11.2016

Thanks +REP