SpawnPlayer
Description:
Function SpawnPlayer (re)spawns a player.
|
Parameters:
(playerid)
int | playerid | The ID of the player to spawn. |
Return Values:
- 1: The function was executed successfully.
- 0: The function failed to execute. This means the player is not connected.
Examples:
if (strcmp(cmdtext, "/spawn", true) == 0) { SpawnPlayer(playerid); return 1; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SetSpawnInfo: Set the spawn setting for a player.
- AddPlayerClass: Add a class.
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnPlayerSpawn: Called when a player spawns.