IsPlayerInRaceCheckpoint
คำอธิบาย
Check if the player is inside their current set race checkpoint (SetPlayerRaceCheckpoint).
Name | Description |
---|---|
playerid | The 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);
}
ฟังก์ชั่นที่เกี่ยวข้องกัน
- SetPlayerCheckpoint: Create a checkpoint for a player.
- DisablePlayerCheckpoint: Disable the player's current checkpoint.
- IsPlayerInCheckpoint: Check if a player is in a checkpoint.
- SetPlayerRaceCheckpoint: Create a race checkpoint for a player.
- DisablePlayerRaceCheckpoint: Disable the player's current race checkpoint.
- OnPlayerEnterCheckpoint: Called when a player enters a checkpoint.
- OnPlayerLeaveCheckpoint: Called when a player leaves a checkpoint.
- OnPlayerEnterRaceCheckpoint: Called when a player enters a race checkpoint.
- OnPlayerLeaveRaceCheckpoint: Called when a player leaves a race checkpoint.