---
title: "IsPlayerControllable | open.mp"
description: "Verifique se o jogador é controlável."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsPlayerControllable
language: pt-BR
---

# IsPlayerControllable

aviso

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

## Descrição

Verifique se o jogador é controlável.

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

## Retornos

**true** - Controlável

**false** - Incontrolável

## Exemplos

```c
public OnPlayerSpawn(playerid)
{
    // Descongele o jogador se ele estiver congelado
    if (IsPlayerControllable(playerid) == false)
    {
        TogglePlayerControllable(playerid, true);
    }

    return 1;
}
```

## Funções Relacionadas

-   [TogglePlayerControllable](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/TogglePlayerControllable): Alterna se um jogador pode controlar seu personagem ou não. O jogador também não poderá mover sua câmera.
