---
title: "OnPlayerLeaveRaceCheckpoint | open.mp"
description: "Esta callback é chamada quando um jogador sai de um checkpoint de corrida."
canonical: https://omp.itsneufox.com/pt-BR/docs/scripting/callbacks/OnPlayerLeaveRaceCheckpoint
language: pt-BR
---

# OnPlayerLeaveRaceCheckpoint

## Descrição

Esta callback é chamada quando um jogador sai de um checkpoint de corrida

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

## Retorno

É sempre chamado primeiro nos filterscripts.

## Examples

```c
public OnPlayerLeaveRaceCheckpoint(playerid)
{
    printf("Player %d left a race checkpoint!", playerid);
    return 1;
}
```

## Notes

nota

Esta callback também pode ser chamada por NPC.

## Callbacks Relacionadas

Os seguintes callbacks podem ser úteis, pois estão relacionados a este callback de alguma forma.

-   [OnPlayerEnterCheckpoint](https://omp.itsneufox.com/pt-BR/docs/scripting/callbacks/OnPlayerEnterCheckpoint): Chamado quando um jogador entra em um checkpoint.
-   [OnPlayerLeaveCheckpoint](https://omp.itsneufox.com/pt-BR/docs/scripting/callbacks/OnPlayerLeaveCheckpoint): Chamado quando um jogador sai de um checkpoint.
-   [OnPlayerEnterRaceCheckpoint](https://omp.itsneufox.com/pt-BR/docs/scripting/callbacks/OnPlayerEnterRaceCheckpoint): Chamado quando um jogador entra em um checkpoint de corrida.

## Funções Relacionadas

-   [SetPlayerCheckpoint](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/SetPlayerCheckpoint): Cria o checkpoint para um jogador.
-   [DisablePlayerCheckpoint](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/DisablePlayerCheckpoint): Desativa o atual checkpoint do jogador.
-   [IsPlayerInCheckpoint](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsPlayerInCheckpoint): Verifica se o jogador está em checkpoint.
-   [SetPlayerRaceCheckpoint](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/SetPlayerRaceCheckpoint): Cria um checkpoint de corrida.
-   [DisablePlayerRaceCheckpoint](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/DisablePlayerRaceCheckpoint): Desativa o atual checkpoint de corrida do jogador.
-   [IsPlayerInRaceCheckpoint](https://omp.itsneufox.com/pt-BR/docs/scripting/functions/IsPlayerInRaceCheckpoint): Verifica se o jogador está em um checkpoint de corrida.
