OnPlayerEnterRaceCheckpoint
From SA-MP Wiki
OnPlayerEnterRaceCheckpoint
This callback is called when a player enters the race checkpoint.
(playerid)
| playerid | The player who entered 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 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: Creates a race checkpoint.
- DisablePlayerRaceCheckpoint: Disables a race checkpoint.
- IsPlayerInRaceCheckpoint: Checks if a player in in a race checkpoint.
