admin: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "{{GameCategory|arma3|New Scripting Commands}} {{GameCategory|arma3|Scripting Commands}} {{uc:{{PAGENAME}}}}" to "") |
Lou Montana (talk | contribs) m (Text replacement - "[[server.cfg#" to "[[Arma 3: Server Config File#") |
||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.70 | |||
|gr1= Multiplayer | |||
|gr1 = Multiplayer | |||
|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. | |descr= This is dedicated server command, which queries the admin state of any client on the network by their client ([[owner]]) id. | ||
{{Feature|informative|To self-check the admin state of a local client, use [[BIS_fnc_admin]].}} | |||
| | |s1= [[admin]] ownerID | ||
|p1= ownerID: [[Number]] - [[clientOwner]] id | |p1= ownerID: [[Number]] - [[clientOwner]] id | ||
| | |r1= [[Number]] - admin state of given client: | ||
* 0 - client is not an admin | |||
| | * 1 - client is admin that is [[Arma 3: Server Config File#Voted_In_Admin|voted in]] | ||
* 2 - client is admin that is [[Arma 3: Server Config File#Logged_In_Admin|logged in]] | |||
| | |x1= <sqf>private _isLoggedInAdmin = admin 3 == 2;</sqf> | ||
|x2= <sqf>private _adminState = admin owner unit1;</sqf> | |||
|x2= < | |||
| [[serverCommand]] | |seealso= [[serverCommand]] [[serverCommandAvailable]] [[owner]] [[clientOwner]] [[remoteExecutedOwner]] | ||
}} | }} |
Latest revision as of 13:40, 17 May 2024
Description
- Description:
- This is dedicated server command, which queries the admin state of any client on the network by their client (owner) id.
- Groups:
- Multiplayer
Syntax
- Syntax:
- admin ownerID
- Parameters:
- ownerID: Number - clientOwner id
- Return Value:
- Number - admin state of given client:
Examples
- Example 1:
- Example 2:
Additional Information
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