BIS fnc admin: Difference between revisions
Jump to navigation
Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki) |
m (released in 1.70) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 5: | Line 4: | ||
| arma3 |= Game name | | arma3 |= Game name | ||
|1. | |1.70|= Game version | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | 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.|= Description | ||
____________________________________________________________________________________________ | |||
| call '''BIS_fnc_admin''' |= Syntax | |||
|p1= |= Parameter 1 | |||
|p2= |= Parameter 2 | |||
| [[Number]] - admin state of current client: | |||
* 0 - client is not an admin | |||
* 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]] |= Return value | |||
< | |exec= call |= Execution By (defaults to [[call]] if omitted) | ||
__________________________________________________________________________ | |||
|x1= <code>_adminState = [[call]] [[BIS_fnc_admin]];</code> |= Example 1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[admin]] |= See also | ||
}} | }} | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
<!-- Appropriate categories go here e.g. [[Category:Arma 3: Functions|{{uc:{{PAGENAME}}}}]] --> | |||
[[Category:Function Group: MP|{{uc:admin}}]] | [[Category:Function Group: MP|{{uc:admin}}]] | ||
[[Category:Functions|{{uc:admin}}]] | [[Category:Functions|{{uc:admin}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc: | [[Category:{{Name|arma3}}: Functions|{{uc:spawn}}]] |
Revision as of 00:31, 13 March 2018
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:
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