admin: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Reverted to revision 99773 by shukari on 2017-05-16T15:46:39Z) |
m (template:command argument fix) |
||
Line 17: | Line 17: | ||
| '''admin''' ownerID |= Syntax | | '''admin''' ownerID |= Syntax | ||
|p1= ownerID: [[Number]] - [[clientOwner]] id |= | |p1= ownerID: [[Number]] - [[clientOwner]] id |PARAMETER1= | ||
|p2= |= | |p2= |PARAMETER2= | ||
|p3= |= | |p3= |PARAMETER3= | ||
| [[Number]] - admin state of given client: | | [[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 voted in | ||
* 2 - client is admin that is logged in|= | * 2 - client is admin that is logged in|RETURNVALUE= | ||
|x1= <code>_isLoggedInAdmin = [[admin]] 3 == 2;</code>|= | |x1= <code>_isLoggedInAdmin = [[admin]] 3 == 2;</code>|EXAMPLE1= | ||
|x2= <code>_adminState = [[admin]] [[owner]] unit1;</code>|= | |x2= <code>_adminState = [[admin]] [[owner]] unit1;</code>|EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[serverCommand]], [[serverCommandAvailable]], [[owner]], [[clientOwner]], [[remoteExecutedOwner]] |= | | [[serverCommand]], [[serverCommandAvailable]], [[owner]], [[clientOwner]], [[remoteExecutedOwner]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:28, 7 April 2019
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:
- Uncategorised
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
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