Skip to main content

PlayerGangZoneGetColour

warning

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

Description

Get the colour of a player gangzone.

NameDescription
playeridThe ID of the player to whom player gangzone is bound.
zoneidThe ID of the player gangzone.

Returns

Color of player gangzone.

0: Failed to execute the function. The player gangzone is not shown for the player.

Examples

new gGangZoneID[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
// Create the gangzone
gGangZoneID[playerid] = CreatePlayerGangZone(playerid, 2236.1475, 2424.7266, 2319.1636, 2502.4348);

// Show the gangzone to player
PlayerGangZoneShow(playerid, gGangZoneID[playerid], 0xFF0000FF);

new colour = PlayerGangZoneGetColour(playerid, gGangZoneID[playerid]);
// colour = 0xFF0000FF
return 1;
}