admin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *([^=\| ]+) * \|p1=" to " |s1= $1 |p1=")
m (Text replacement - " \|p1=([^ ]+) + \| *(\[\[Numb.+) * " to " |p1=$1 |r1=$2 ")
Line 18: Line 18:
|p1= ownerID: [[Number]] - [[clientOwner]] id
|p1= ownerID: [[Number]] - [[clientOwner]] id


| [[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 voted in

Revision as of 04:38, 13 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Multiplayer

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

See also:
serverCommandserverCommandAvailableownerclientOwnerremoteExecutedOwner

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