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

From BZFlagWiki
Jump to navigation Jump to search
New page: {{BZFS_API_Doc}} {{BZFS_API_Funcs}} ==Prototype== BZF_API bool bz_givePlayerFlag ( int playerID, const char* flagType, bool force ); ==Parameters== {| border="1" cellpadding="20" cellspaci...
 
Zehra (talk | contribs)
redirect, since functions are in official docs
Tag: New redirect
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{BZFS_API_Doc}}
#REDIRECT [[Category:BZFS API Docs]]
{{BZFS_API_Funcs}}
==Prototype==
BZF_API bool bz_givePlayerFlag ( int playerID, const char* flagType, bool force );
==Parameters==
{| border="1" cellpadding="20" cellspacing="0"
  !name
  !type
  !value desription
  |-
  |playerId
  |int
  |the player that is to get the flag.
  |-
  |flagType
  |const char*
  |The flag code of the flag to give to the player.
  |-
  |force
  |bool
  |replace the existing flag if it exists
  |}
 
==Description==
This API function will give the specified player the specified flag. If the player has no flag, they will get a flag. If they have a flag and the force parameter is true the new flag code will replace the old flag code. If the force paramater is false, and the player has a flag, no action will be taken.

Latest revision as of 01:25, 26 November 2025