Sari la conținutul principal

PlayerGangZoneShow

Avertisment

Disponibil din versiunea omp v1.1.0.2612. Versiunile anterioare nu acceptă acest element. Tip: funcție.

Description​

Show player gangzone in a color.

NameDescription
playeridThe ID of the player to whom player gangzone is bound.
zoneidThe ID of the player gangzone for shown.
colourThe colour by which the player gangzone will be shown.

Returns​

1: The function executed successfully. Success is reported even if the gangzone was show to begin with.

0: The function failed to execute. The gangzone specified does not exist.

Examples​

// This variable is used to store the id of the gangzone
// so that we can use it throught the script
new gGangZoneID[MAX_PLAYERS] = {INVALID_GANG_ZONE, ...};

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

// Show the gangzone player
PlayerGangZoneShow(playerid, gGangZoneID[playerid], 0xFFFFFFFF);
}