OnPlayerLeaveRaceCheckpoint
From SA-MP Wiki
OnPlayerLeaveRaceCheckpoint
This callback is called when a player leaves the race checkpoint.
(playerid)
| playerid | The player who left the race checkpoint. |
| Returns | 0 - prevents this callback from being executed anywhere else. |
| Returns | 1 - allows execution of this callback in filterscripts loaded afterwards (except for gamemodes). |
public OnPlayerLeaveRaceCheckpoint(playerid) { printf("Player %d left 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: Creates a race checkpoint.
- DisablePlayerRaceCheckpoint: Removes a race checkpoint.
- IsPlayerInRaceCheckpoint: Checks if a player in in a race checkpoint.
Related Callbacks
The following callbacks might be useful as well, as they're related to this callback in one way or another.
- OnPlayerEnterRaceCheckpoint: Called when a player enters a race checkpoint.
