---
title: "GetPlayerGhostMode | open.mp"
description: "دریافت حالت روح بازیکن."
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/GetPlayerGhostMode
language: fa
---

# GetPlayerGhostMode

هشدار

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

## توضیحات

دریافت حالت روح بازیکن.

| نام | توضیحات |
| --- | --- |
| playerid | ID بازیکن برای دریافت حالت روحش. |

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

**true** - حالت روح فعال است.

**false** - حالت روح غیرفعال است.

## مثال‌ها

```c
new string[64];
format(string, sizeof(string), "Your ghost mode is %s", GetPlayerGhostMode(playerid) == true ? "enable" : "disable");
SendClientMessage(playerid, -1, string);
```

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

-   [TogglePlayerGhostMode](https://omp.itsneufox.com/fa/docs/scripting/functions/TogglePlayerGhostMode): تغییر وضعیت حالت روح بازیکن.
