---
title: "PlayerGangZoneFlash | open.mp"
description: "چشمک زدن player gangzone را شروع کن"
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerGangZoneFlash
language: fa
---

# PlayerGangZoneFlash

هشدار

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

## توضیحات

چشمک زدن player gangzone را شروع می‌کند.

| نام | توضیحات |
| --- | --- |
| playerid | ID بازیکنی که player gangzone به آن متصل است. |
| zoneid | ID player gangzone برای شروع چشمک زدن. |
| flashColour | رنگی که player gangzone با آن چشمک خواهد زد. |

## مقدار بازگشتی

**1:** تابع با موفقیت اجرا شد. موفقیت حتی اگر player gangzone از قبل چشمک می‌زد گزارش می‌شود.

**0:** اجرای تابع ناموفق بود. gangzone مشخص شده وجود ندارد.

## مثال‌ها

```c
// 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]);

    // Start player gangzone flash
    PlayerGangZoneFlash(playerid, gGangZoneID[playerid], 0xFF00FFFF);
}
```

## توابع مرتبط

-   [CreatePlayerGangZone](https://omp.itsneufox.com/fa/docs/scripting/functions/CreatePlayerGangZone): player gangzone بساز.
-   [PlayerGangZoneDestroy](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerGangZoneDestroy): player gangzone را نابود کن.
-   [PlayerGangZoneShow](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerGangZoneShow): player gangzone نمایش بده.
-   [PlayerGangZoneHide](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerGangZoneHide): player gangzone را مخفی کن.
-   [PlayerGangZoneStopFlash](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerGangZoneStopFlash): چشمک زدن player gangzone را متوقف کن.
-   [PlayerGangZoneGetColour](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerGangZoneGetColour): رنگ player gangzone را بگیر.
-   [PlayerGangZoneGetFlashColour](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerGangZoneGetFlashColour): رنگ چشمک زدن player gangzone را بگیر.
-   [PlayerGangZoneGetPos](https://omp.itsneufox.com/fa/docs/scripting/functions/PlayerGangZoneGetPos): موقعیت gangzone را بگیر، نمایش داده شده توسط مختصات minX, minY, maxX, maxY.
-   [IsValidPlayerGangZone](https://omp.itsneufox.com/fa/docs/scripting/functions/IsValidPlayerGangZone): بررسی کن که آیا player gangzone معتبر است.
-   [IsPlayerInPlayerGangZone](https://omp.itsneufox.com/fa/docs/scripting/functions/IsPlayerInPlayerGangZone): بررسی کن که آیا بازیکن در player gangzone است.
-   [IsPlayerGangZoneVisible](https://omp.itsneufox.com/fa/docs/scripting/functions/IsPlayerGangZoneVisible): بررسی کن که آیا player gangzone قابل مشاهده است.
-   [IsPlayerGangZoneFlashing](https://omp.itsneufox.com/fa/docs/scripting/functions/IsPlayerGangZoneFlashing): بررسی کن که آیا player gangzone چشمک می‌زند.
-   [UsePlayerGangZoneCheck](https://omp.itsneufox.com/fa/docs/scripting/functions/UsePlayerGangZoneCheck): callback را فعال کن وقتی بازیکن وارد/خارج این zone می‌شود.
