BIS fnc admin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Function|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.69|= Game version _____________...")
m (1 revision imported: BIS Functions update 2/7)
(One intermediate revision by one other user not shown)
Line 17: Line 17:
| [[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 voted in
* 1 - client is admin that is [[server.cfg#Voted_In_Admin|voted in]]
* 2 - client is admin that is logged in  |= Return value
* 2 - client is admin that is [[server.cfg#Logged_In_Admin|logged in]] |= Return value


|exec= call |= Execution By (defaults to [[call]] if omitted)
|exec= call |= Execution By (defaults to [[call]] if omitted)

Revision as of 20:58, 20 May 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