OnPlayerRequestSpawn

From SA-MP Wiki

Jump to: navigation, search

OnPlayerRequestSpawn


Called when a player presses shift at class selection.


Parameters:
(playerid)
playeridID of the player who wants to spawn.


Returns1 - 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.

Personal tools