View Full Version : Question

13/06/2015, 07:11 PM
Hey community..

I was checking forums and so on and I realized that I never actually worked with this min_x, min_y, max_x/y whatever - mostly used for gang zones, areas and so on, can someone just explain me this a little what's up with those coordinates and how to get them. I'm not planning to script nothing with this (yet) but I would like to learn what's up with that, thanks for help in advance.

13/06/2015, 08:32 PM
The design below is taken from samp wiki:

_________________ Point 2;
| |
| This is |
| the area that |
| you want |
| to define! |
Point 1;

- x and y from Point 1 as min_x and min_y
- x and y from Point 2 as max_x and max_y

13/06/2015, 08:47 PM
Okay that means if I want area covered and name it like I want I have to move to 4 spots and do /savepos (debug mode) So that's how I gue min / max x/y?

13/06/2015, 09:02 PM

Go to "Position 1" and type /save Pos 1 then go to "Position 2" and type /save Pos 2.
Get the X and Y coords of the both positions.

The code should look like:
GangZoneCreate(Pos1_x, Pos1_y, Pos2_x, Pos2_y);

13/06/2015, 09:05 PM
Thank you a lot both, very helpful.

13/06/2015, 09:28 PM
you can use Rider's Filterscripts's