BIS fnc admin: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) 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...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.70 | |1.70 | ||
|gr1 = Multiplayer | |gr1 = Multiplayer | ||
| 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. | | 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. | ||
| call '''BIS_fnc_admin''' | | call '''BIS_fnc_admin''' | ||
|p1 | |p1= | ||
|p2 | |p2= | ||
| [[Number]] - admin state of current client: | | [[Number]] - admin state of current client: | ||
* 0 - client is not an admin | * 0 - client is not an admin | ||
* 1 - client is admin that is [[server.cfg#Voted_In_Admin|voted in]] | * 1 - client is admin that is [[server.cfg#Voted_In_Admin|voted in]] | ||
* 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]] | ||
|exec= call |= Execution By (defaults to [[call]] if omitted) | |exec= call |= Execution By (defaults to [[call]] if omitted) | ||
|x1= <code>_adminState = [[call]] [[BIS_fnc_admin]];</code> | |x1= <code>_adminState = [[call]] [[BIS_fnc_admin]];</code> | ||
| [[admin]] | | [[admin]] | ||
}} | }} |
Revision as of 22:36, 17 January 2021
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:
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