admin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
m (Bot: Reverted to revision 99773 by shukari on 2017-05-16T15:46:39Z)
Line 48: Line 48:


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: Scripting Commands]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Multiplayer|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]]

Revision as of 19:21, 3 December 2018

Hover & click on the images for description

Description

Description:
This is dedicated server command, which queries the admin state of any client on the network by their client (owner) id. Possible results are: In all other cases it returns 0. To self check the admin state of a local client, use BIS_fnc_admin.
Groups:
Uncategorised

Syntax

Syntax:
admin ownerID
Parameters:
ownerID: Number - clientOwner id
Return Value:
Number - admin state of given 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:
_isLoggedInAdmin = admin 3 == 2;
Example 2:
_adminState = admin owner unit1;

Additional Information

See also:
serverCommandserverCommandAvailableownerclientOwnerremoteExecutedOwner

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

Notes

Bottom Section