Scripting/Server/Functions/GangZoneShowForPlayer

Shows the zone. colour is a Colour or an integer in SA-MP's 0xRRGGBBAA format; the alpha decides how solid the area looks (0xFF0000AA = translucent red). Showing a shown zone again just changes its colour. Like in SA-MP, ForAll reaches the players connected right now only: show the zones of a game mode from onPlayerJoin. PC and Android.

Syntax

GangZoneShowForPlayer(player, zone, colour)
GangZoneShowForAll(zone, colour)

Arguments

Returns

bool (false for an invalid zone or player)

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "gangzoneshowforplayer" )
	{
		local result = GangZoneShowForPlayer( player, 0, Colour( 255, 128, 0 ) );
		MessagePlayer( "GangZoneShowForPlayer 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