Description
Returns true if given serverCommand is available on current machine, false if not.
Note
Execution via RCon is basically being logged-in as admin in terms of permissions.
| Arma 3 Multiplayer Server Commands | Available to | |||
|---|---|---|---|---|
| Client | Voted Admin | Logged Admin | Server Host | |
1. login, 1. userlist, 1. beclient, 1. vote |
✓ | ✓ | ✓ | ✓ |
1. kick, 1. debug |
✗ | ✓ | ✓ | ✓ |
1. lock, 1. unlock, 1. maxping, 1. maxdesync, 1. maxpacketloss |
✗ | ✗ | ✓ | ✓ |
1. logout, 1. restart, 1. mission, 1. missions, 1. reassign, 1. monitor, 1. init |
✗ | ✓ | ✓ | ✗ |
1. shutdown, 1. restartserver, 1. restartserveraftermission, 1. shutdownaftermission, 1. dctimeout, 1. exec, 1. monitords, 1. beserver |
✗ | ✗ | ✓ | ✗ |
1. logentities, 1. exportjipqueue |
✗ | ✗ | ✓ | ✓ |
Profiling type builds only: 1. captureframe, 1. captureslowframe |
✗ | ✗ | ✓ | ✓ |
To check if a server command can be executed in the current environment, use serverCommandExecutable.
Note
The table above does not apply to the command's password variant on a dedicated server as everything is available to it.
Syntax
serverCommandAvailable command
Parameters:
command: String
Returns: Boolean
Examples
Example 1
_can = serverCommandAvailable "#kick";
Example 2
if (serverCommandAvailable "#logout") then
{
hint "You are a some sort of admin";
};
See also
serverCommand · serverCommandExecutable · admin · isServer · Multiplayer Server Commands