OnPlayerRequestSpawn
From SA-MP Wiki
OnPlayerRequestSpawn
Called when a player presses shift at class selection.
(playerid)
| playerid | ID of the player who wants to spawn. |
| Returns | 1 - Let the player spawn 0 - Don't let him spawn |
public OnPlayerRequestSpawn(playerid) { SendClientMessage(playerid,COLOR_GREEN,"Spawning"); return 1; }
Related Callbacks
The following callbacks might be useful as well, as they're related to this callback in one way or another.
- OnPlayerRequestClass: Called when a player presses left/right on class selection or F4
