IsPlayerInRaceCheckpoint
From SA-MP Wiki
IsPlayerInRaceCheckpoint
Check if the player is currently inside a race checkpoint.
(playerid)
| playerid | The player you want to know the status of. |
| Returns | true if the player is in a race checkpoint, false if not. |
if(IsPlayerInRaceCheckpoint(playerid)) SetPlayerHealth(playerid, 100);
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- IsPlayerInCheckpoint: Check if a player is in a checkpoint.
- SetPlayerRaceCheckpoint: Create a race checkpoint for a player.
