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

# IsPlayerSpawned

هشدار

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

## توضیحات

چک می‌کنه که آیا بازیکن spawn شده یا نه.

| نام | توضیحات |
| --- | --- |
| playerid | ID بازیکنی که باید چک بشه. |

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

**true** - بازیکن spawn شده.

**false** - بازیکن spawn نشده.

## مثال‌ها

```c
public OnPlayerText(playerid, text[])
{
    if (!IsPlayerSpawned(playerid))
    {
        SendClientMessage(playerid, COLOR_RED, "ERROR: You must be spawned to send messages.");
        return 0;
    }
    return 1;
}
```

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

-   [SpawnPlayer](https://omp.itsneufox.com/fa/docs/scripting/functions/SpawnPlayer): (دوباره) spawn کردن یه بازیکن.
