---
title: "IsPlayerInGangZone | open.mp"
description: "چک می‌کنه که آیا بازیکن در gangzone هست یا نه"
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/IsPlayerInGangZone
language: fa
---

# IsPlayerInGangZone

هشدار

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

## توضیحات

چک می‌کنه که آیا بازیکن در gangzone هست یا نه.

| نام | توضیحات |
| --- | --- |
| playerid | ID بازیکنی که می‌خوای چک کنی که در gangzone هست یا نه. |
| zoneid | ID gangzone. |

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

**true** - بازیکن در gangzone هست.

**false** - بازیکن در gangzone نیست.

## نکات

هشدار

-   این تابع برای open.mp هست، نه SA-MP. برای استفاده با SA-MP، نیاز به پلاگین [YSF](https://github.com/IS4Code/YSF/releases) داری.
-   این تابع بدون فراخوانی [UseGangZoneCheck](https://omp.itsneufox.com/fa/docs/scripting/functions/UseGangZoneCheck) در ابتدا نمی‌تونه استفاده بشه.

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

-   [GangZoneDestroy](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneDestroy): نابود کردن یه gangzone.
-   [GangZoneShowForPlayer](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneShowForPlayer): نمایش یه gangzone برای بازیکن.
-   [GangZoneShowForAll](https://omp.itsneufox.com/fa/docs/scripting/functions/GangZoneShowForAll): نمایش یه 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 برای همه بازیکنان.
-   [IsValidGangZone](https://omp.itsneufox.com/fa/docs/scripting/functions/IsValidGangZone): چک کردن اینکه gangzone معتبره یا نه.
