---
title: "GangZoneShowForPlayer | open.mp"
description: "نشون دادن یه gangzone به یه بازیکن."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneShowForPlayer
language: fa
---

# GangZoneShowForPlayer

## توضیحات

نشون دادن یه gangzone به یه بازیکن. اول باید با [GangZoneCreate](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneCreate) ساخته بشه.

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

## برگشتی

**1** اگه gangzone نمایش داده شد، در غیر این صورت **0** (وجود نداره).

## مثال‌ها

```c
new gGangZoneId;

public OnGameModeInit()
{
    gGangZoneId = GangZoneCreate(1082.962, -2787.229, 2942.549, -1859.51);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    GangZoneShowForPlayer(playerid, gGangZoneId, 0xFFFF0096);
    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 برای همه بازیکن‌ها.
