note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
PlayerGangZoneGetFlashColour
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Get the flashing colour of a player gangzone.
Name | Description |
---|---|
playerid | The ID of the player to whom player gangzone is bound. |
zoneid | The 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;
}
Related Functions
- CreatePlayerGangZone: Create player gangzone.
- PlayerGangZoneDestroy: Destroy player gangzone.
- PlayerGangZoneShow: Show player gangzone.
- PlayerGangZoneHide: Hide player gangzone.
- PlayerGangZoneFlash: Start player gangzone flash.
- PlayerGangZoneStopFlash: Stop player gangzone flash.
- PlayerGangZoneGetColour: Get the colour of a player gangzone.
- PlayerGangZoneGetPos: Get the position of a gangzone, represented by minX, minY, maxX, maxY coordinates.
- IsValidPlayerGangZone: Check if the player gangzone valid.
- IsPlayerInPlayerGangZone: Check if the player in player gangzone.
- IsPlayerGangZoneVisible: Check if the player gangzone is visible.
- IsPlayerGangZoneFlashing: Check if the player gangzone is flashing.
- UsePlayerGangZoneCheck: Enables the callback when a player enters/leaves this zone.