admin: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "[[server.cfg#" to "[[Arma 3: Server Config File#") |
||
Line 17: | Line 17: | ||
|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 [[ | * 1 - client is admin that is [[Arma 3: Server Config File#Voted_In_Admin|voted in]] | ||
* 2 - client is admin that is [[ | * 2 - client is admin that is [[Arma 3: Server Config File#Logged_In_Admin|logged in]] | ||
|x1= <sqf>private _isLoggedInAdmin = admin 3 == 2;</sqf> | |x1= <sqf>private _isLoggedInAdmin = admin 3 == 2;</sqf> |
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