{"name":"BIS_fnc_admin","title":"BIS fnc admin","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_admin","revid":364585,"updated":"2024-05-17T12:40:33Z","groups":["Multiplayer"],"status":"ok","games":{"arma3":"1.70"},"since":"arma3 1.70","arma3_since":"1.70","description":"Returns the admin state of a client the function is called on. Complements admin script command and used for self check on a local client.","syntaxes":[{"syntax":"call BIS_fnc_admin","params":[],"returns":{"type":"Number","type_expr":"Number","description":"admin state of current 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 current 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"}}],"examples":[{"code":["private _adminState = call BIS_fnc_admin;"]}],"see_also":["admin"]}