serverCommandAvailable: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "") |
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
||
Line 32: | Line 32: | ||
'''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. | ||
|s1= | |s1= '''serverCommandAvailable''' command | ||
|p1= | |p1= command: [[String]] | ||
|r1= [[Boolean]] | |r1= [[Boolean]] |
Revision as of 22:31, 19 June 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
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