admin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (template:command argument fix)
Line 12: Line 12:
* <tt>1</tt> - client is admin that is [[server.cfg#Voted_In_Admin|voted in]]
* <tt>1</tt> - client is admin that is [[server.cfg#Voted_In_Admin|voted in]]
* <tt>2</tt> - client is admin that is [[server.cfg#Logged_In_Admin|logged in]]
* <tt>2</tt> - client is admin that is [[server.cfg#Logged_In_Admin|logged in]]
In all other cases it returns 0. To self check the admin state of a local client, use [[BIS_fnc_admin]]. |= Description
In all other cases it returns 0. To self check the admin state of a local client, use [[BIS_fnc_admin]]. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''admin''' ownerID |= Syntax
| '''admin''' ownerID |SYNTAX=


|p1= ownerID: [[Number]] - [[clientOwner]] id  |PARAMETER1=  
|p1= ownerID: [[Number]] - [[clientOwner]] id  |PARAMETER1=  

Revision as of 11:25, 7 April 2019

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