முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

PlayerGangZoneGetFlashColour

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Get the flashing colour of a player gangzone.

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

Returns​

Flashing 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);

// Start player gangzone flash
PlayerGangZoneFlash(playerid, gGangZoneID[playerid], 0x45D1ABFF);

new flashColour = PlayerGangZoneGetFlashColour(playerid, gGangZoneID[playerid]);
// flashColour = 0x45D1ABFF
return 1;
}