OnPlayerEnterRaceCheckpoint
From SA-MP Wiki
OnPlayerEnterRaceCheckpoint
This callback is called when a player enters a race checkpoint.
(playerid)
| playerid | The ID of the player who entered the race checkpoint. |
| Returns | Returning 0 in this callback will call this callback in other scripts |
public OnPlayerEnterRaceCheckpoint(playerid) { printf("Player %d entered a race checkpoint!",playerid); return 1; }
Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- SetPlayerRaceCheckpoint: Create a race checkpoint for a player.
- DisablePlayerRaceCheckpoint: Disable the player's current race checkpoint.
- IsPlayerInRaceCheckpoint: Check if a player is in a race checkpoint.
