Skip to main content

IsPlayerInRaceCheckpoint

คำอธิบาย

Check if the player is inside their current set race checkpoint (SetPlayerRaceCheckpoint).

NameDescription
playeridThe ID of the player to check.

ส่งคืน

0: Player is not in a race checkpoint.

1: Player is in a race checkpoint.

ตัวอย่าง

if (IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerHealth(playerid, 100);
}

ฟังก์ชั่นที่เกี่ยวข้องกัน