Skip to Content

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

Back to bzfs API Functions

This content is maintained on GitHub. We welcome any feedback and improvements!

Give us Feedback Edit this Page