---
title: "IsPlayerUsingOmp | open.mp"
description: "Verifique se o jogador está usando o inicializador open.mp."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsPlayerUsingOmp
language: pt-BR
---

# IsPlayerUsingOmp

aviso

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

## Descrição

Verifique se o jogador está usando o inicializador open.mp.

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

## Retornos

Retorna 1 se o jogador estiver usando o inicializador open.mp, caso contrário, 0.

## Exemplos

```c
public OnPlayerConnect(playerid)
{
    // O jogador está usando o iniciador open.mp
    if (IsPlayerUsingOmp(playerid))
    {
        SendClientMessage(playerid, -1, "You are using the open.mp launcher.");
    }

    // O jogador não está usando o inicializador open.mp
    else
    {
        SendClientMessage(playerid, 0xFF0000FF, "[KICK]: You don't seem to be using the open.mp launcher");
        Kick(playerid);
    }

    return 1;
}
```

## Funções Relacionadas

-   [IsPlayerUsingOfficialClient](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsPlayerUsingOfficialClient): Verifique se o jogador está usando o cliente oficial SA-MP.
-   [SendClientCheck](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/SendClientCheck): Execute uma verificação de memória no cliente.
