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
Sigonasr2 (talk | contribs)
Undo revision 7806 by Sigonasr2 (Talk) - Accidently modified the wrong entry. Meant to modify the bzPlayerRecord.
Zehra (talk | contribs)
redirect, since functions are in official docs
Tag: New redirect
 
(One intermediate revision by the same user 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