serverCommandAvailable: Difference between revisions
| Killzone Kid (talk | contribs)  (full list of all commands and availability) | Killzone Kid (talk | contribs)  mNo edit summary | ||
| Line 7: | Line 7: | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | Returns [[true]] if the [[serverCommand]] is available on current machine, [[false]] if not. Here is the general table of availability of server commands: | | Returns [[true]] if the [[serverCommand]] is available on current machine, [[false]] if not. Here is the general table of availability of Arma 3 server commands: | ||
| <br><br> | <br><br> | ||
| * '''Available to anyone''' | * '''Available to anyone''' | ||
Revision as of 20:28, 18 April 2017
Description
- Description:
- Returns true if the serverCommand is available on current machine, false if not. Here is the general table of availability of Arma 3 server commands:
 - Available to anyone
 #login, #userlist, #beclient, #vote #kick, #debug #lock, #unlock, #maxping, #maxdesync, #maxpacketloss - Available to any (voted in or logged in) admin
 #logout, #restart, #mission, #missions, #reassign, #monitor, #init - Available to logged in admin
 #shutdown, #restartserver, #exec, #beserver, #monitords, #logentities, #exportjipqueue - Available to logged in admin on certain game builds
 
 To check if server command could be executed in current environment use serverCommandExecutable#captureframe, #enabletest, #disabletest 
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
- _can = serverCommandAvailable "#kick";
- Example 2:
- if (serverCommandAvailable "#logout") then { hint "You are an admin"; };
Additional Information
Notes
- 
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
 Only post proven facts here! Add Note
 
	