BIS fnc admin: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *([^pr ]+) \|x1=" to " |r1=$1 |x1=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.70 | |||
|1.70 | |||
|gr1= Multiplayer | |gr1= Multiplayer | ||
| Returns the admin state of a client the function is called on. | |descr= 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. | ||
| | |s1= call [[BIS_fnc_admin]] | ||
| [[Number]] - admin state of current client: | |r1= [[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]] | ||
| | |x1= <code>[[private]] _adminState = [[call]] [[BIS_fnc_admin]];</code> | ||
|seealso= [[admin]] | |seealso= [[admin]] | ||
}} | }} | ||
Revision as of 21:36, 10 June 2021
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:
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