This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.
Bz setPlayerSpawnable: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
 bz_setPlaerSpawnable  | 
				 Add return type  | 
				||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{apicall  | {{apicall  | ||
| name          =   | | name          = bz_setPlayerSpawnable  | ||
| description   = Marks this player as allowed to spawn or not allowed to spawn.  | | description   = Marks this player as allowed to spawn or not allowed to spawn.  | ||
| version = 2.4.3  | |||
| param1        = playerID  | | param1        = playerID  | ||
| param1type    = int  | | param1type    = int  | ||
| Line 8: | Line 9: | ||
| param2type    = bool  | | param2type    = bool  | ||
| param2desc    = Mark them as able to spawn or not spawn  | | param2desc    = Mark them as able to spawn or not spawn  | ||
| returntype    = bool  | |||
| returns = True if target player was valid and setting the spawnablity was successful  | |||
}}  | }}  | ||
Latest revision as of 05:11, 29 July 2015
bool bz_setPlayerSpawnable (int playerID, bool spawn)
Minimum API Version: 2.4.3 
Marks this player as allowed to spawn or not allowed to spawn.
Parameters: 
playerID  -  The id of the player to mark as spawnable. 
spawn  -  Mark them as able to spawn or not spawn 
Returns: 
True if target player was valid and setting the spawnablity was successful