admin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 11: Line 10:


|serverExec= server|=
|serverExec= server|=
____________________________________________________________________________________________


| This is dedicated server command, which queries the admin state of any client on the network by their client ([[owner]]) id. Possible results are:
| This is dedicated server command, which queries the admin state of any client on the network by their client ([[owner]]) id. Possible results are:
Line 17: Line 15:
* <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=
Line 36: Line 33:
|x2= <code>_adminState = [[admin]] [[owner]] unit1;</code>|EXAMPLE2=  
|x2= <code>_adminState = [[admin]] [[owner]] unit1;</code>|EXAMPLE2=  


____________________________________________________________________________________________


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


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 00:02, 17 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