serverCommandAvailable: Difference between revisions
| Lou Montana (talk | contribs) m (Some wiki formatting) | Lou Montana (talk | contribs)  m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") | ||
| Line 75: | Line 75: | ||
| |x1= <sqf>_can = serverCommandAvailable "#kick";</sqf> | |x1= <sqf>_can = serverCommandAvailable "#kick";</sqf> | ||
| |x2= <sqf>if (serverCommandAvailable "#logout") then   | |x2= <sqf> | ||
| if (serverCommandAvailable "#logout") then   | |||
| { | { | ||
| 	hint "You are a some sort of admin"; | 	hint "You are a some sort of admin"; | ||
| };</sqf> | }; | ||
| </sqf> | |||
| |seealso= [[serverCommand]] [[serverCommandExecutable]] [[admin]] [[isServer]] [[Multiplayer Server Commands]] | |seealso= [[serverCommand]] [[serverCommandExecutable]] [[admin]] [[isServer]] [[Multiplayer Server Commands]] | ||
| }} | }} | ||
Revision as of 11:34, 3 September 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, #exec, #beserver, #monitords, #logentities, #exportjipqueue         Specific builds only: #captureframe, #enabletest, #disabletest         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
 
	


