---
title: "IsPlayerTeleportAllowed | open.mp"
description: "آیا این بازیکن می‌تونه با کلیک راست روی نقشه teleport کنه؟"
canonical: https://omp.itsneufox.com/fa/docs/scripting/functions/IsPlayerTeleportAllowed
language: fa
---

# IsPlayerTeleportAllowed

هشدار

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

## توضیحات

آیا این بازیکن می‌تونه با کلیک راست روی نقشه teleport کنه؟

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

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

**true** - بازیکن اجازه داره.

**false** - بازیکن اجازه نداره.

## مثال‌ها

```c
public OnPlayerConnect(playerid)
{
    AllowPlayerTeleport(playerid, true);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if (IsPlayerTeleportAllowed(playerid))
    {
        // Do something
    }
    return 1;
}
```

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

-   [AllowPlayerTeleport](https://omp.itsneufox.com/fa/docs/scripting/functions/AllowPlayerTeleport): بازیکن رو بعنوان ادمین RCON تنظیم می‌کنه.
