Ana içeriğe geç

GangZoneGetPos

warning

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Get the position of a gangzone, represented by minX, minY, maxX, maxY coordinates.

NameDescription
zoneidThe ID of the zone to the coordinates of which want to get.
&Float:minXThe X coordinate for the west side of the player gangzone.
&Float:minYThe Y coordinate for the south side of the player gangzone.
&Float:maxXThe X coordinate for the east side of the player gangzone.
&Float:maxYThe Y coordinate for the north side of the player gangzone.

Returns

This function always returns true.

Examples

new gangZone;

public OnGameModeInit()
{
gangZone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319);

new
Float:minX,
Float:minY,
Float:maxX,
Float:maxY;

GangZoneGetPos(gangZone, minX, minY, maxX, maxY);
return 1;
}