BIS fnc admin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (template:command argument fix)
Line 12: Line 12:
| call '''BIS_fnc_admin''' |SYNTAX=
| call '''BIS_fnc_admin''' |SYNTAX=


|p1=  |= Parameter 1
|p1=  |PARAMETER1=
|p2=  |= Parameter 2
|p2=  |PARAMETER2=


| [[Number]]  - admin state of current client:
| [[Number]]  - admin state of current client:
Line 23: Line 23:
__________________________________________________________________________
__________________________________________________________________________
   
   
|x1= <code>_adminState = [[call]] [[BIS_fnc_admin]];</code> |= Example 1
|x1= <code>_adminState = [[call]] [[BIS_fnc_admin]];</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 15:28, 7 April 2019

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:
Uncategorised

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

Bottom Section