---
name: "admin"
type: command
status: ok
groups: ["Multiplayer"]
arma3_since: "1.70"
locality: {"argument": null, "effect": null, "server_exec": true}
source: https://community.bistudio.com/wiki/admin
revid: 364587
updated: 2024-05-17T12:40:33Z
---

# admin

*Command · Multiplayer · Arma 3 v1.70*

Locality: **server execution only**

## Description

This is dedicated server command, which queries the admin state of any client on the network by their client ([owner](../commands/owner.md)) id.

> [!NOTE]
> To self-check the admin state of a local client, use [BIS_fnc_admin](../functions/BIS_fnc_admin.md).

## Syntax

```sqf
admin ownerID
```

**Parameters:**

- `ownerID`: [Number](../topics/Number.md) - [clientOwner](../commands/clientOwner.md) id

**Returns:** [Number](../topics/Number.md) - 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

```sqf
private _isLoggedInAdmin = admin 3 == 2;
```

### Example 2

```sqf
private _adminState = admin owner unit1;
```

## See also

[serverCommand](../commands/serverCommand.md) · [serverCommandAvailable](../commands/serverCommandAvailable.md) · [owner](../commands/owner.md) · [clientOwner](../commands/clientOwner.md) · [remoteExecutedOwner](../commands/remoteExecutedOwner.md)

<sub>Source: [BI Community Wiki — admin](https://community.bistudio.com/wiki/admin) (revision 364587).</sub>
