Difference between revisions of "admin"

From Bohemia Interactive Community
Jump to: navigation, search
(see also)
m
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| arma3dev |= Game name
+
| arma3 |= Game name
  
|1.69|= Game version
+
|1.70|= Game version
  
 
|exec= server|=
 
|exec= server|=
Line 10: Line 10:
  
 
| 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:
* <tt>1</tt> - client is admin that is 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 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
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
Line 34: Line 34:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| [[serverCommand]], [[serverCommandAvailable]], [[owner]], [[clientOwner]] |= SEEALSO  
+
| [[serverCommand]], [[serverCommandAvailable]], [[owner]], [[clientOwner]], [[remoteExecutedOwner]] |= SEEALSO  
  
 
|  |= MPBEHAVIOUR  
 
|  |= MPBEHAVIOUR  

Latest revision as of 16:46, 16 May 2017

Introduced with Arma 3 version 1.70
  This scripting command must be executed on the server to work properly in multiplayer

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.70

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.

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

Multiplayer:
-
See also:
serverCommandserverCommandAvailableownerclientOwnerremoteExecutedOwner

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section