serverCommandAvailable: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (servercommand will not work from anywhere) |
Killzone Kid (talk | contribs) mNo edit summary |
||
Line 17: | Line 17: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1 = <code>_can = [[serverCommandAvailable]] "#kick";</code> | |x1 = <code>_can = [[serverCommandAvailable]] "#kick";</code> | ||
|x2 = | |x2 = <code> | ||
<code> | |||
[[if]] ([[serverCommandAvailable]] "#logout") [[then]] { | [[if]] ([[serverCommandAvailable]] "#logout") [[then]] { | ||
[[hint]] "You are an admin"; | [[hint]] "You are an admin"; |
Revision as of 10:39, 16 October 2014
Description
- Description:
- Returns true if the serverCommand can be performed on the machine, false if not. serverCommand can be executed only from User Interface Event Handlers, so calling this command elsewhere may return true even if serverCommand would have no effect.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_can = serverCommandAvailable "#kick";
- Example 2:
if (serverCommandAvailable "#logout") then { hint "You are an 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