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

# IsPlayerUsingOfficialClient

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 está usando o cliente oficial SA-MP.

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

## Retornos

Retorna 1 se o jogador estiver usando o cliente oficial, caso contrário, 0.

## Exemplos

```c
public OnPlayerConnect(playerid)
{
    if (IsPlayerUsingOfficialClient(playerid) == 0)
    {
        SendClientMessage(playerid, 0xFF0000FF, "[KICK]: You doesn't seem to be using the official sa-mp client!");
        Kick(playerid);
    }

    return 1;
}
```

## Funções Relacionadas

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