---
title: "ArePlayerWeaponsAllowed | open.mp"
description: "O jogador pode usar armas?"
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/ArePlayerWeaponsAllowed
language: pt-BR
---

# ArePlayerWeaponsAllowed

aviso

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

## Descrição

O jogador pode usar armas?

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

## Retorno

**true** - Jogador está permitido. **false** - Jogador não está permitido.

## Exemplos

```c
public OnPlayerSpawn(playerid)
{
    if (ArePlayerWeaponsAllowed(playerid))
    {
        // fazer algo
    }
    return 1;
}
```

## Funções Relacionadas

-   [AllowPlayerWeapons](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/AllowPlayerWeapons): Ativar/Desativar armas para um jogador.
