BIS fnc admin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
(Created page with "{{Function|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.69|= Game version _____________...")
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3dev |= Game name


|1.00|= Game version
|1.69|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| 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
Author:
____________________________________________________________________________________________
Killzone_Kid


Description:
| call '''BIS_fnc_admin''' |= Syntax
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.


Parameter(s):
|p1=  |= Parameter 1
NONE
|p2=  |= Parameter 2


Returns:
| [[Number]]  - admin state of current client:
NUMBER
* 0 - client is not an admin
0 - this client is not an admin
* 1 - client is admin that is voted in
1 - this client is voted in admin
* 2 - client is admin that is logged in |= Return value
2 - this client is logged in admin
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|exec= call |= Execution By (defaults to [[call]] if omitted)
__________________________________________________________________________
 
|x1= <code>_adminState = [[call]] [[BIS_fnc_admin]];</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_admin]]; --> |= Syntax
|p1= |= Parameter 1


| |= Return value
| [[admin]] |= See also
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<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:admin}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:spawn}}]]

Revision as of 10:35, 19 April 2017

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.69|1.69]]
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

[[Category:Introduced with arma3dev version 1.69]][[ Category: arma3dev: New Functions | BIS FNC ADMIN]][[ Category: arma3dev: Functions | BIS FNC ADMIN]]

Bottom Section