---
title: "IsPlayerTeleportAllowed | open.mp"
description: "Este jogador pode se teletransportar clicando com o botão direito no mapa?"
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsPlayerTeleportAllowed
language: pt-BR
---

# IsPlayerTeleportAllowed

aviso

Esta função foi adicionada no omp v1.1.0.2612 e não funcionará em versões anteriores!

## Descrição

Este jogador pode se teletransportar clicando com o botão direito no mapa?

| Nome | Descrição |
| --- | --- |
| playerid | O ID do jogador para permitir o teletransporte. |

## Retornos

**true** - Jogador é permitido.

**false** - Jogador não é permitido.

## Exemplos

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

public OnPlayerSpawn(playerid)
{
    if (IsPlayerTeleportAllowed(playerid))
    {
        // Faça alguma coisa
    }
    return 1;
}
```

## Funções Relacionadas

-   [AllowPlayerTeleport](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/AllowPlayerTeleport): Define o jogador como administrador RCON.
