GangZoneCreate

GangZoneCreate

Description:
Function GangZoneCreate сreate a gangzone (colored radar area).
This function merely CREATES the gangzone, you must use GangZoneShowForPlayer or GangZoneShowForAll to show it.
  • There is a limit of 1024 gangzones.
  • Putting the parameters in the wrong order results in glitchy behavior.


Parameters:
(Float:minx, Float:miny, Float:maxx, Float:maxy)
float minx The X coordinate for the west side of the gangzone.
float miny The Y coordinate for the south side of the gangzone.
float maxx The X coordinate for the east side of the gangzone.
float maxy The Y coordinate for the north side of the gangzone.


Return Values:
The ID of the created zone, returns -1 if not created.


Examples:
new gangzone;
gangzone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319);

            MinY
             v
      MinX > *-------------
             |            |
             |  gangzone  |
             |   center   |
             |            |
             -------------* < MaxX
                          ^
                          MaxY


Related Functions
The following functions may be useful, as they are related to this function in one way or another.