serverCommandAvailable: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +" to " ")
m (Text replacement - " \| ?\[\[([a-zA-Z0-9]+)\]\] *\|x1=" to " |r1= $1 |x1=")
Line 36: Line 36:
|p1=  command: [[String]]
|p1=  command: [[String]]


| [[Boolean]]
|r1= [[Boolean]]
 
|x1= <code>_can = [[serverCommandAvailable]] "#kick";</code>
|x1= <code>_can = [[serverCommandAvailable]] "#kick";</code>
|x2= <code>[[if]] ([[serverCommandAvailable]] "#logout") [[then]]  
|x2= <code>[[if]] ([[serverCommandAvailable]] "#logout") [[then]]  

Revision as of 10:28, 11 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Multiplayer

Syntax

Syntax:
Syntax needed
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

See also:
serverCommandserverCommandExecutableadminMultiplayer Server Commands

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