OnPlayerLeaveCheckpoint
From SA-MP Wiki
OnPlayerLeaveCheckpoint
This callback is called when a player leaves the checkpoint set for that player.
(playerid)
| playerid | The player who left the 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 OnPlayerLeaveCheckpoint(playerid) { printf("Player %i left a checkpoint!",playerid); return 1; }
Related Functions
The following functions might be useful, as they're related to this callback in one way or another.
- SetPlayerCheckpoint: Create a checkpoint for a player.
- DisablePlayerCheckpoint: Disable the player's current checkpoint.
- IsPlayerInCheckpoint: Check if a player is in a checkpoint.
