serverCommandAvailable: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) mNo edit summary |
Killzone Kid (talk | contribs) mNo edit summary |
||
Line 11: | Line 11: | ||
* '''Available to anyone''' | * '''Available to anyone''' | ||
<blockquote><tt>#login</tt>, <tt>#userlist</tt>, <tt> #beclient</tt>, <tt> #vote</tt></blockquote> | <blockquote><tt>#login</tt>, <tt>#userlist</tt>, <tt> #beclient</tt>, <tt> #vote</tt></blockquote> | ||
* '''Available to any (voted in | * '''Available to any [[admin]] (voted in / logged in) or [[isServer|server]]''' | ||
<blockquote><tt>#kick</tt>, <tt>#debug</tt></blockquote> | <blockquote><tt>#kick</tt>, <tt>#debug</tt></blockquote> | ||
* '''Available to logged in [[admin]] or [[isServer|server]]''' | * '''Available to logged in [[admin]] or [[isServer|server]]''' | ||
<blockquote><tt>#lock</tt>, <tt>#unlock</tt>, <tt>#maxping</tt>, <tt>#maxdesync</tt>, <tt>#maxpacketloss</tt></blockquote> | <blockquote><tt>#lock</tt>, <tt>#unlock</tt>, <tt>#maxping</tt>, <tt>#maxdesync</tt>, <tt>#maxpacketloss</tt></blockquote> | ||
* '''Available to any (voted in | * '''Available to any [[admin]] (voted in / logged in)''' | ||
<blockquote><tt>#logout</tt>, <tt>#restart</tt>, <tt>#mission</tt>, <tt>#missions</tt>, <tt>#reassign</tt>, <tt>#monitor</tt>, <tt>#init</tt></blockquote> | <blockquote><tt>#logout</tt>, <tt>#restart</tt>, <tt>#mission</tt>, <tt>#missions</tt>, <tt>#reassign</tt>, <tt>#monitor</tt>, <tt>#init</tt></blockquote> | ||
* '''Available to logged in [[admin]]''' | * '''Available to logged in [[admin]]''' |
Revision as of 20:53, 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 admin (voted in / logged in)
#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. For more information on what each server command does, see Multiplayer Server Commands#captureframe, #enabletest, #disabletest
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_can = serverCommandAvailable "#kick";
- Example 2:
if (serverCommandAvailable "#logout") then { hint "You are a some sort of 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