serverCommandAvailable: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ") |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([^= ]+)<\/tt>" to "{{hl|$1}}") |
||
Line 18: | Line 18: | ||
<br><br> | <br><br> | ||
* '''Available to anyone''' | * '''Available to anyone''' | ||
<blockquote> | <blockquote>{{hl|#login}}, {{hl|#userlist}}, {{hl| #beclient}}, {{hl| #vote}}</blockquote> | ||
* '''Available to any [[admin]] (voted in / logged in) or [[isServer|server]] host''' | * '''Available to any [[admin]] (voted in / logged in) or [[isServer|server]] host''' | ||
<blockquote> | <blockquote>{{hl|#kick}}, {{hl|#debug}}</blockquote> | ||
* '''Available to logged in [[admin]] or [[isServer|server]] host''' | * '''Available to logged in [[admin]] or [[isServer|server]] host''' | ||
<blockquote> | <blockquote>{{hl|#lock}}, {{hl|#unlock}}, {{hl|#maxping}}, {{hl|#maxdesync}}, {{hl|#maxpacketloss}}</blockquote> | ||
* '''Available to any [[admin]] (voted in / logged in)''' | * '''Available to any [[admin]] (voted in / logged in)''' | ||
<blockquote> | <blockquote>{{hl|#logout}}, {{hl|#restart}}, {{hl|#mission}}, {{hl|#missions}}, {{hl|#reassign}}, {{hl|#monitor}}, {{hl|#init}}</blockquote> | ||
* '''Available to logged in [[admin]]''' | * '''Available to logged in [[admin]]''' | ||
<blockquote> | <blockquote>{{hl|#shutdown}}, {{hl|#restartserver}}, {{hl|#exec}}, {{hl|#beserver}}, {{hl|#monitords}}, {{hl|#logentities}}, {{hl|#exportjipqueue}}</blockquote> | ||
* '''Available to logged in [[admin]] on certain game builds''' | * '''Available to logged in [[admin]] on certain game builds''' | ||
<blockquote> | <blockquote>{{hl|#captureframe}}, {{hl|#enabletest}}, {{hl|#disabletest}}</blockquote> | ||
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]].<br><br> | 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]].<br><br> | ||
'''NOTE''': When password variant of [[serverCommand]] is used on dedicated server, the table above does not apply as everything is available to it. | '''NOTE''': When password variant of [[serverCommand]] is used on dedicated server, the table above does not apply as everything is available to it. |
Revision as of 00:15, 16 November 2021
Description
- Description:
- Returns true if given 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
#captureframe, #enabletest, #disabletest
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.
NOTE: When password variant of serverCommand is used on dedicated server, the table above does not apply as everything is available to it.
- Groups:
- Multiplayer
Syntax
- Syntax:
- serverCommandAvailable command
- Parameters:
- command: String
- Return Value:
- Boolean
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