admin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\|= " to " ")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.70|Game version=
|1.70


|gr1 = Multiplayer |GROUP1=
|gr1 = Multiplayer




Line 14: Line 14:
* <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]].


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


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


|p2= |PARAMETER2=
|p2=


|p3= |PARAMETER3=  
|p3=


| [[Number]] - admin state of given client:
| [[Number]] - admin state of given 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 voted in
* 2 - client is admin that is logged in|RETURNVALUE=
* 2 - client is admin that is logged in




|x1= <code>_isLoggedInAdmin = [[admin]] 3 == 2;</code>|EXAMPLE1=
|x1= <code>_isLoggedInAdmin = [[admin]] 3 == 2;</code>
|x2= <code>_adminState = [[admin]] [[owner]] unit1;</code>|EXAMPLE2=
|x2= <code>_adminState = [[admin]] [[owner]] unit1;</code>




| [[serverCommand]], [[serverCommandAvailable]], [[owner]], [[clientOwner]], [[remoteExecutedOwner]] |SEEALSO=
| [[serverCommand]], [[serverCommandAvailable]], [[owner]], [[clientOwner]], [[remoteExecutedOwner]]


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 01:03, 18 January 2021

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:
Multiplayer

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