This site has been archived and made available for preservation purposes. No edits can be made.

SetServerRule

This is an old revision of this page, as edited 04-06-2012, 03:24 PM by foxtacles (contribs). It may differ significantly from the current revision.
Server rulesServer rules

Defines a new server rule.

[top]Declaration

<code cpp>
VAULTSCRIPT void (*SetServerRule)(std::string, std::string);
native SetServerRule(rule{}, value{});
</code>

[top]Parameters

rule - the new rule (key)
value - the value of the rule

[top]Return value

None.

[top]Usage example (C++)

<code cpp>
std::string key = "website";
std::string value = "vaultmp.com";
SetServerRule(key, value);
</code>