SpawnPlayer
From SA-MP Wiki
(Re)Spawns a player.
(playerid)
| playerid | The ID of the player to spawn. |
| Returns | This function doesn't return a specific value |
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 they're related to this function in one way or another.
- OnPlayerSpawn: Called when a player spawns.
