Difference between revisions of "serverCommandAvailable"

From Bohemia Interactive Community
Jump to navigation Jump to search
m
(servercommand will not work from anywhere)
Line 19: Line 19:
 
|x2 = Add button to the main map to lock server, which could only be activated by admin:
 
|x2 = Add button to the main map to lock server, which could only be activated by admin:
 
<code>
 
<code>
[[if]] ([[serverCommandAvailable]] "#lock") [[then]] {
+
[[if]] ([[serverCommandAvailable]] "#logout") [[then]] {
[[serverCommand]] "#lock";
+
[[hint]] "You are an admin";
} [[else]] {
 
[[hint]] "You need to be logged in as admin to do this";
 
 
};</code>
 
};</code>
 
| [[serverCommand]], [[serverCommandExecutable]], [[Multiplayer Server Commands]] |= See also
 
| [[serverCommand]], [[serverCommandExecutable]], [[Multiplayer Server Commands]] |= See also

Revision as of 11:39, 16 October 2014

Template:Command

Notes

Bottom Section