{"name":"admin","title":"admin","type":"command","url":"https://community.bistudio.com/wiki/admin","revid":364587,"updated":"2024-05-17T12:40:33Z","groups":["Multiplayer"],"status":"ok","games":{"arma3":"1.70"},"since":"arma3 1.70","arma3_since":"1.70","locality":{"server_exec":true},"description":"This is dedicated server command, which queries the admin state of any client on the network by their client (owner) id.\n\n> [!NOTE]\n> To self-check the admin state of a local client, use BIS_fnc_admin.","syntaxes":[{"syntax":"admin ownerID","params":[{"name":"ownerID","type":"Number","description":"clientOwner id","type_expr":"Number"}],"returns":{"type":"Number","type_expr":"Number","description":"admin state of given client:\n- 0 - client is not an admin - 1 - client is admin that is voted in - 2 - client is admin that is logged in","text":"Number - admin state of given client:\n\n- 0 - client is not an admin\n- 1 - client is admin that is voted in\n- 2 - client is admin that is logged in"},"form":"unary","right":{"text":"ownerID"}}],"examples":[{"code":["private _isLoggedInAdmin = admin 3 == 2;"]},{"code":["private _adminState = admin owner unit1;"]}],"see_also":["serverCommand","serverCommandAvailable","owner","clientOwner","remoteExecutedOwner"]}