Ugrás a fő tartalomhoz

GangZoneCreate

Description

Create a gangzone (colored radar area).

NameDescription
Float:minXThe X coordinate for the west side of the gangzone.
Float:minYThe Y coordinate for the south side of the gangzone.
Float:maxXThe X coordinate for the east side of the gangzone.
Float:maxYThe Y coordinate for the north side of the gangzone.

Returns

The ID of the created zone, returns -1 if not created

Examples

new gangZone;

public OnGameModeInit()
{
gangZone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319);
return 1;
}
                          MaxY
v
-------------* < MaxX
| |
| gangzone |
| center |
| |
MinX > *-------------
^
MinY

Notes

vigyázat
  • There is a limit of 1024 gangzones.
  • Putting the parameters in the wrong order results in glitchy behavior.
tanács

This function merely CREATES the gangzone, you must use GangZoneShowForPlayer or GangZoneShowForAll to show it.

GangZone Editors