BIS fnc admin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Some wiki formatting)
 
Line 15: Line 15:
* 2 - client is admin that is [[server.cfg#Logged_In_Admin|logged in]]
* 2 - client is admin that is [[server.cfg#Logged_In_Admin|logged in]]


|x1= <code>[[private]] _adminState = [[call]] [[BIS_fnc_admin]];</code>
|x1= <sqf>private _adminState = call BIS_fnc_admin;</sqf>


|seealso= [[admin]]
|seealso= [[admin]]
}}
}}

Latest revision as of 22:09, 7 May 2022

Hover & click on the images for description

Description

Description:
Returns the admin state of a client the function is called on. Complements 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:
private _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