Skip to main content

GangZoneCreate

คำอธิบาย

Create a gangzone (colored radar area).

NameDescription
minxThe X coordinate for the west side of the gangzone.
minyThe Y coordinate for the south side of the gangzone.
maxxThe X coordinate for the east side of the gangzone.
maxyThe Y coordinate for the north side of the gangzone.

ส่งคืน

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

ตัวอย่าง

new gangzone;
gangzone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319);
            MinY
v
MinX > *-------------
| |
| gangzone |
| center |
| |
-------------* < MaxX
^
MaxY

บันทึก

tip

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

warning

There is a limit of 1024 gangzones. Putting the parameters in the wrong order results in glitchy behavior.

ฟังก์ชั่นที่เกี่ยวข้องกัน