BIS fnc admin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
m (Text replacement - "<h3 style="display:none">Bottom Section</h3>" to "")
Line 27: Line 27:


}}
}}
<h3 style="display:none">Bottom Section</h3>
 
<!-- Appropriate categories go here e.g. {{GameCategory|arma3|Functions}} -->
<!-- Appropriate categories go here e.g. {{GameCategory|arma3|Functions}} -->


[[Category:Functions|{{uc:admin}}]]
[[Category:Functions|{{uc:admin}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:spawn}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:spawn}}]]

Revision as of 01:46, 18 January 2021

Hover & click on the images for description

Description

Description:
Returns the admin state of a client the function is called on. Compliments admin script command and used for self check on a local client.
Execution:
call
Groups:
Multiplayer

Syntax

Syntax:
call BIS_fnc_admin
Return Value:
Number - admin state of current client:
  • 0 - client is not an admin
  • 1 - client is admin that is voted in
  • 2 - client is admin that is logged in

Examples

Example 1:
_adminState = call BIS_fnc_admin;

Additional Information

See also:
admin

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note