SpawnPlayer
From SA-MP Wiki
(Difference between revisions)
Revision as of 10:21, 13 December 2011 Gkstjd031 (Talk | contribs) ← Previous diff |
Revision as of 00:58, 1 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 24: | Line 24: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:SpawnPlayer]] | ||
[[nl:SpawnPlayer]] | [[nl:SpawnPlayer]] | ||
[[ko:SpawnPlayer]] | [[ko:SpawnPlayer]] |
Revision as of 00:58, 1 February 2014
Description:
(Re)Spawns a player.
(playerid)
playerid | The ID of the player to spawn. |
Return Values:
This function does not return any specific values.
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.