bz_setPlayerSpawnable()
Available since 2.4.4
Marks this player as allowed to spawn or not allowed to spawn. This is not to be confused with having the SPAWN permission; when a player is not spawnable, they will not be able to spawn but won't be kicked if they attempt to spawn.
Usage
bool bz_setPlayerSpawnable(int playerID, bool spawn)
Parameters | ||
---|---|---|
int |
playerID
|
The id of the player to target |
bool |
spawn
|
Set to true to allow a player to spawn |
Returns
bool - True if target player was valid and setting the spawnablity was successful
Other Player State Functions
This content is maintained on GitHub. We welcome any feedback and improvements!