serverCommandAvailable: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
(added note about rcon permissions state for serverCommandAvailable sqf command) |
||
(59 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2 |= | |game1= arma2 | ||
|version1= 1.05 | |||
|1. | |game2= arma2oa | ||
|version2= 1.50 | |||
| | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
| | |gr1= Multiplayer | ||
| | |descr= Returns [[true]] if given [[serverCommand]] is available on current machine, [[false]] if not. | ||
{{Feature|informative| | |||
Execution via [[BattlEye#RCon|RCon]] is basically being '''logged-in''' as [[admin]] in terms of permissions. | |||
}} | }} | ||
{{{!}} class="wikitable align-center" | |||
! rowspan="2" {{!}} {{arma3}} [[Multiplayer Server Commands]] | |||
! colspan="4" {{!}} Available to | |||
<!-- | {{!}}- | ||
! Client | |||
! Voted [[admin|Admin]] | |||
! Logged [[admin|Admin]] | |||
! [[isServer|Server Host]] | |||
{{!}}- | |||
{{!}} {{hl|#login}}, {{hl|#userlist}}, {{hl|#beclient}}, {{hl|#vote}} | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}}- | |||
{{!}} {{hl|#kick}}, {{hl|#debug}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}}- | |||
{{!}} {{hl|#lock}}, {{hl|#unlock}}, {{hl|#maxping}}, {{hl|#maxdesync}}, {{hl|#maxpacketloss}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}}- | |||
{{!}} {{hl|#logout}}, {{hl|#restart}}, {{hl|#mission}}, {{hl|#missions}}, {{hl|#reassign}}, {{hl|#monitor}}, {{hl|#init}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}}- | |||
{{!}} {{hl|#shutdown}}, {{hl|#restartserver}}, {{hl|#restartserveraftermission}}, {{hl|#shutdownaftermission}}, {{hl|#dctimeout}}, {{hl|#exec}}, {{hl|#monitords}}, {{hl|#beserver}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}}- | |||
{{!}} {{hl|#logentities}}, {{hl|#exportjipqueue}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}}- | |||
{{!}} Profiling type builds only: {{hl|#captureframe}}, {{hl|#captureslowframe}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|checked}} | |||
{{!}} {{Icon|checked}} | |||
<!-- | |||
{{!}}- | |||
{{!}} Disabled: {{hl|#admin}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|unchecked}} | |||
{{!}} {{Icon|unchecked}} | |||
--> | |||
{{!}}} | |||
To check if a [[Multiplayer Server Commands|server command]] can be executed in the current environment, use [[serverCommandExecutable]]. | |||
[[ | |||
[[ | {{Feature|informative|The table above does not apply to the command's password variant on a dedicated server as everything is available to it.}} | ||
[[ | |||
[[ | |s1= [[serverCommandAvailable]] command | ||
[[ | |||
|p1= command: [[String]] | |||
|r1= [[Boolean]] | |||
|x1= <sqf>_can = serverCommandAvailable "#kick";</sqf> | |||
|x2= <sqf> | |||
if (serverCommandAvailable "#logout") then | |||
{ | |||
hint "You are a some sort of admin"; | |||
}; | |||
</sqf> | |||
|seealso= [[serverCommand]] [[serverCommandExecutable]] [[admin]] [[isServer]] [[Multiplayer Server Commands]] | |||
}} |
Latest revision as of 15:40, 29 October 2024
Description
- Description:
- Returns true if given serverCommand is available on current machine, false if not.
Arma 3 Multiplayer Server Commands Available to Client Voted Admin Logged Admin Server Host #login, #userlist, #beclient, #vote #kick, #debug #lock, #unlock, #maxping, #maxdesync, #maxpacketloss #logout, #restart, #mission, #missions, #reassign, #monitor, #init #shutdown, #restartserver, #restartserveraftermission, #shutdownaftermission, #dctimeout, #exec, #monitords, #beserver #logentities, #exportjipqueue Profiling type builds only: #captureframe, #captureslowframe To check if a server command can be executed in the current environment, use serverCommandExecutable.
- Groups:
- Multiplayer
Syntax
- Syntax:
- serverCommandAvailable command
- Parameters:
- command: String
- Return Value:
- Boolean
Examples
- Example 1:
- Example 2:
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