{"name":"admin","operator":null,"title":"admin","type":"command","url":"https://community.bistudio.com/wiki/admin","revid":364587,"updated":"2024-05-17T12:40:33Z","groups":["Multiplayer"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.70"}],"since":{"game":"arma3","name":"Arma 3","version":"1.70"},"arma3_since":"1.70","branch":null,"locality":{"argument":null,"effect":null,"server_exec":true},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"ownerID","type":"Number","optional":false,"default":null,"description":"clientOwner id","types":["Number"],"since":null,"text":"ownerID: Number - clientOwner id"}],"returns":{"type":"Number","types":["Number"],"description":"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","text":"Number - admin state of given client:\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","operator":null,"left":null,"right":{"text":"ownerID","types":["Number"]}}],"examples":[{"text":"```sqf\nprivate _isLoggedInAdmin = admin 3 == 2;\n```","code":["private _isLoggedInAdmin = admin 3 == 2;"]},{"text":"```sqf\nprivate _adminState = admin owner unit1;\n```","code":["private _adminState = admin owner unit1;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["serverCommand","serverCommandAvailable","owner","clientOwner","remoteExecutedOwner"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Multiplayer","Introduced with Arma 3 version 1.70","Scripting Commands","Scripting Commands: Server Execution"]}