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 zapPlayer: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
Yassen (talk | contribs)
m Returns: Oops, this isn't BBCode
Zehra (talk | contribs)
redirect, since functions are in official docs
Tag: New redirect
 
Line 1: Line 1:
{{BZFS_API_Doc}}{{BZFS_API_Funcs}}
#REDIRECT [[Category:BZFS API Docs]]
==Prototype==
BZF_API bool bz_zapPlayer(int player );
 
==Parameters==
; int  player : Player index to force a respawn.
 
==Returns==
False if the player does not exist, or is alive.<br>
True if the operation completed.
 
==Description==
This function is used to force a player to respawn. Her or his client will simply respawn and continue playing. Any flags will be dropped. Plug-ins that wish to move the player to a specific location must provide that position on the [[bz_eGetPlayerSpawnPosEvent]] event.
 
==Version==
Requires BZFS 2.99.5 (20080809, r18308) or later

Latest revision as of 23:57, 25 November 2025