warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
IsPlayerInRaceCheckpoint
Description
Check if the player is inside their current set race checkpoint (SetPlayerRaceCheckpoint).
Name | Description |
---|---|
playerid | The ID of the player to check. |
Returns
true - Player is in a race checkpoint.
false - Player is not in a race checkpoint.
Examples
if (IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerHealth(playerid, 100.0);
}
Related Functions
- SetPlayerCheckpoint: Create a checkpoint for a player.
- IsPlayerRaceCheckpointActive: Check if the player currently has a race checkpoint visible.
- 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.
Related Callbacks
- 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.