Scripting/Server/Functions/GangZoneDestroy

Removes a zone from every player's radar and frees its id / tells whether the id is in use.

Syntax

GangZoneDestroy(zone)
IsValidGangZone(zone)

Arguments

Returns

bool

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "gangzonedestroy" )
	{
		local result = GangZoneDestroy( 0 );
		MessagePlayer( "GangZoneDestroy returned: " + result, player );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Creating world entities

Categories: Server functions | Creating world entities