Question
#1

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.
Reply
#2

The design below is taken from samp wiki:

Код:
             _________________ Point 2;
             |                |
             |    This is     |
             |  the area that |
             |    you want    |
             |   to define!   |
             |________________|
      Point 1;
Get:
- x and y from Point 1 as min_x and min_y
- x and y from Point 2 as max_x and max_y
Reply
#3

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?
Reply
#4



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);
Reply
#5

Thank you a lot both, very helpful.
Reply
#6

you can use Rider's Filterscripts's

https://sampforum.blast.hk/showthread.php?tid=120586
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)