---
title: "GangZoneShowForAll | open.mp"
description: "یه gangzone رو با رنگ دلخواه به همه بازیکن‌ها نشون میده."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneShowForAll
language: fa
---

# GangZoneShowForAll

## توضیحات

یه gangzone رو با رنگ دلخواه به همه بازیکن‌ها نشون میده.

| نام | توضیحات |
| --- | --- |
| zoneid | ID گنگ‌زونی که میخوایم نشون بدیم (که از [GangZoneCreate](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneCreate) برمیگرده). |
| colour | رنگی که میخوایم gang zone رو باهاش نشون بدیم، به صورت integer یا hex در فرمت رنگی RGBA. Alpha transparency پشتیبانی میشه. |

## برگشتی

1: تابع با موفقیت اجرا شد. gang zone برای همه بازیکن‌ها نمایش داده شد.

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

## مثال‌ها

```c
new gGangZoneId;

public OnGameModeInit()
{
    gGangZoneId = GangZoneCreate(1248.011, 2072.804, 1439.348, 2204.319);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if (IsPlayerAdmin(playerid))
    {
        GangZoneShowForAll(gGangZoneId, 0xFF0000FF);
    }
    return 1;
}
```

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

-   [GangZoneCreate](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneCreate): ساختن یه gangzone.
-   [GangZoneDestroy](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneDestroy): حذف یه gangzone.
-   [GangZoneShowForPlayer](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneShowForPlayer): نشون دادن یه gangzone به یه بازیکن.
-   [GangZoneHideForPlayer](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneHideForPlayer): مخفی کردن یه gangzone برای یه بازیکن.
-   [GangZoneHideForAll](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneHideForAll): مخفی کردن یه gangzone برای همه بازیکن‌ها.
-   [GangZoneFlashForPlayer](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneFlashForPlayer): چشمک زدن یه gangzone برای یه بازیکن.
-   [GangZoneFlashForAll](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneFlashForAll): چشمک زدن یه gangzone برای همه بازیکن‌ها.
-   [GangZoneStopFlashForPlayer](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneStopFlashForPlayer): متوقف کردن چشمک زدن gangzone برای یه بازیکن.
-   [GangZoneStopFlashForAll](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneStopFlashForAll): متوقف کردن چشمک زدن gangzone برای همه بازیکن‌ها.
