SA-MP Forums Archive
create gang zone in coordinates - 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: create gang zone in coordinates (/showthread.php?tid=632795)



create gang zone in coordinates - Bussyman - 19.04.2017

Hi,

I want to make a little gang zone in specific X,Y,Z how to calculate minx,miny,maxx,maxy? ... ?


Re: create gang zone in coordinates - Marricio - 19.04.2017

Well, if you want to make a little square then X Y are your minX and your minY, and your maxX and maxY can be defined as X-50.0, Y-50.0. You can adjust the value to make it smaller/bigger.

Z is not used in gang zones as it portrays a zone in a 2D plane (map/radar).


Re: create gang zone in coordinates - JR_Junior - 19.04.2017

Quote:
Originally Posted by Marricio
Посмотреть сообщение
Well, if you want to make a little square then X Y are your minX and your minY, and your maxX and maxY can be defined as X-50.0, Y-50.0. You can adjust the value to make it smaller/bigger.

Z is not used in gang zones as it portrays a zone in a 2D plane (map/radar).
Nice!
But if I want to make a gang zone arround the X and Y point, and not X and Y being the minx and miny, but the center?


Re: create gang zone in coordinates - Vince - 19.04.2017

Math. Not even once.

min = center - 50
max = center + 50.

Difficult? I think not.