admin: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ") |
Lou Montana (talk | contribs) m (Text replacement - "[[server.cfg#" to "[[Arma 3: Server Config File#") |
||
(7 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
|serverExec= server | |serverExec= server | ||
|descr= 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 | |s1= [[admin]] ownerID | ||
Line 17: | Line 15: | ||
|p1= ownerID: [[Number]] - [[clientOwner]] id | |p1= ownerID: [[Number]] - [[clientOwner]] id | ||
|r1=[[Number]] - admin state of given client: | |r1= [[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 [[Arma 3: Server Config File#Voted_In_Admin|voted in]] | ||
* 2 - client is admin that is logged in | * 2 - client is admin that is [[Arma 3: Server Config File#Logged_In_Admin|logged in]] | ||
|x1= < | |x1= <sqf>private _isLoggedInAdmin = admin 3 == 2;</sqf> | ||
|seealso= [[serverCommand]] | |x2= <sqf>private _adminState = admin owner unit1;</sqf> | ||
|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