---
title: "OnPlayerEnterCheckpoint | open.mp"
description: "Bu geri çağırma, bir oyuncu kendisi için oluşturulan checkpointe giriş yaptığında çağırılır."
canonical: https://omp.itsneufox.com/tr/docs/scripting/callbacks/OnPlayerEnterCheckpoint
language: tr
---

# OnPlayerEnterCheckpoint

## Açıklama

Bu geri çağırma, bir oyuncu kendisi için oluşturulan checkpointe giriş yaptığında çağırılır.

| Parametre | Açıklama |
| --- | --- |
| playerid | Checkpointe giren oyuncunun ID'si. |

## Çalışınca Vereceği Sonuçlar

Her zaman ilk olarak filterscriptlerde çağırılır.

## Örnek

```c
//Oyuncu spawnlandığında checkpoint oluşturulur ve oyuncu checkpointe girdiğinde bir araç spawnlanıp checkpoint silinir.
public OnPlayerSpawn(playerid)
{
    SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    CreateVehicle(520, 1982.6150, -221.0145, -0.2432, 82.2873, -1, -1, 60000);
    DisablePlayerCheckpoint(playerid);
    return 1;
}
```

## Notlar

not

This callback can also be called by NPC.

## Bağlantılı Fonksiyonlar

-   [SetPlayerCheckpoint](https://omp.itsneufox.com/tr/docs/scripting/functions/SetPlayerCheckpoint): Bir oyuncu için checkpoint oluşturur.
-   [DisablePlayerCheckpoint](https://omp.itsneufox.com/tr/docs/scripting/functions/DisablePlayerCheckpoint): Oyuncunun mevcut checkpointini devre dışı bırakır.
-   [IsPlayerInCheckpoint](https://omp.itsneufox.com/tr/docs/scripting/functions/IsPlayerInCheckpoint): Bir oyuncunun checkpointte olup olmadığını kontrol eder.
-   [SetPlayerRaceCheckpoint](https://omp.itsneufox.com/tr/docs/scripting/functions/SetPlayerRaceCheckpoint): Bir oyuncu için yarış checkpointi oluşturur.
-   [DisablePlayerRaceCheckpoint](https://omp.itsneufox.com/tr/docs/scripting/functions/DisablePlayerRaceCheckpoint): Oyuncunun mevcut yarış checkpointini devre dışı bırakır.
-   [IsPlayerInRaceCheckpoint](https://omp.itsneufox.com/tr/docs/scripting/functions/IsPlayerInRaceCheckpoint): Bir oyuncunun yarış checkpointinde olup olmadığını kontrol eder.
