Scripting/Server/Functions/GangZoneCreate
(v0.4-beta+) SA-MP style gang zone: a rectangle of the map that the clients draw on the radar, under the blips and clipped to the radar disc. The zone is invisible until you show it with GangZoneShowForPlayer / GangZoneShowForAll. Up to 1024 zones; ids of destroyed zones are reused.
Syntax
GangZoneCreate(minX, minY, maxX, maxY)GangZoneCreate(Vector min, Vector max)Arguments
- any minX
- any minY
- any maxX
- any maxY
- Vector min
- Vector max
Returns
zone id (integer) or -1 when no slot is free or a coordinate is not a number.
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "gangzonecreate" )
{
local result = GangZoneCreate( 0, 0, 0, 0 );
MessagePlayer( "GangZoneCreate returned: " + result, player );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- CreateVehicle
- CreateObject
- CreatePickup
- CreateWeaponPickup
- CreateSphere
- CreateClientSphere
- CreateCheckpoint
- CreateClientCheckpoint
- FindCheckpoint
- GetCheckpointCount
- CreateBlip
- CreateClientBlip
Section: Creating world entities
Categories: Server functions | Creating world entities