---
title: "IsPlayerCheckpointActive | open.mp"
description: "Verifique se o jogador tem um ponto de controle visível no momento."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsPlayerCheckpointActive
language: pt-BR
---

# IsPlayerCheckpointActive

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 tem um ponto de controle visível no momento.

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

## Valores de retorno

Retorna **false** se não houver nenhum ponto de verificação mostrado atualmente, caso contrário, retorna **true**

## Exemplos

```c
public OnPlayerSpawn(playerid)
{
    if (IsPlayerCheckpointActive(playerid))
    {
        // Faça alguma coisa
    }
}
```

## Funções Relacionadas

-   [SetPlayerCheckpoint](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/SetPlayerCheckpoint): Crie um ponto de verificação para um jogador.
-   [IsPlayerInCheckpoint](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsPlayerInCheckpoint): Verifica se um jogador está em um checkpoint.
-   [IsPlayerRaceCheckpointActive](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsPlayerRaceCheckpointActive): Verifique se o jogador tem atualmente um ponto de verificação de corrida visível.
