SetServerRule
From Liberty Unleashed Wiki
Sets a custom server rule visible in the server browser.
Syntax
bool SetServerRule( string ruleName, string ruleValue )
Arguments
- ruleName - The name of the rule you want to set
- ruleValue - The value of the custom rule
Example
This example will make a custom server rule when someone types '/testrule'
function onPlayerCommand( id, cmd, text ) { if ( cmd == "testrule" ) { SetServerRule("Test Rule", "Test Value"); } }
Notes
The call onPlayerCommand was also used in the example. More info about this in the corresponding page.