GangZoneCreate
From SA-MP Wiki
(Difference between revisions)
Revision as of 21:58, 4 February 2014 Connor Mead (Talk | contribs) ← Previous diff |
Revision as of 16:49, 13 November 2015 Vince (Talk | contribs) (note on parameter order) Next diff → |
||
Line 11: | Line 11: | ||
{{Return|The ID of the created zone}} | {{Return|The ID of the created zone}} | ||
- | {{note2|There is a limit of 1024 gangzones.}} | + | {{note2| |
+ | *There is a limit of 1024 gangzones. | ||
+ | *Putting the parameters in the wrong order results in glitchy behavior.}} | ||
Revision as of 16:49, 13 November 2015
Description:
Create a gangzone (colored radar area).
(Float:minx, Float:miny, Float:maxx, Float:maxy)
minx | The X coordinate for the west side of the gangzone. |
miny | The Y coordinate for the south side of the gangzone. |
maxx | The X coordinate for the east side of the gangzone. |
maxy | The Y coordinate for the north side of the gangzone. |
Return Values:
The ID of the created zone
Important |
|
Note | This function merely CREATES the gangzone, you must use GangZoneShowForPlayer or GangZoneShowForAll to show it. |
new gangzone; gangzone = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GangZoneDestroy: Destroy a gangzone.
- GangZoneShowForPlayer: Show a gangzone for a player.
- GangZoneShowForAll: Show a gangzone for all players.
- GangZoneHideForPlayer: Hide a gangzone for a player.
- GangZoneHideForAll: Hide a gangzone for all players.
- GangZoneFlashForPlayer: Make a gangzone flash for a player.
- GangZoneFlashForAll: Make a gangzone flash for all players.
- GangZoneStopFlashForPlayer: Stop a gangzone flashing for a player.
- GangZoneStopFlashForAll: Stop a gangzone flashing for all players.