Chuyển tới nội dung chính

IsPlayerCheckpointActive

cảnh báo

Đã thêm hàm trong phiên bản omp v1.1.0.2612. Mục này không hoạt động trên các phiên bản cũ hơn!

Description​

Check if the player currently has a checkpoint visible.

NameDescription
playeridThe ID of the player to check.

Return Values​

Returns false if there is no checkpoint currently shown, otherwise returns true

Examples​

public OnPlayerSpawn(playerid)
{
if (IsPlayerCheckpointActive(playerid))
{
// Do something
}
}