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 09-30-2011, 12:14 PM by . It may differ significantly from the current revision.
[[FIle:Rules.png|thumb|right|Server rules]]

Defines a new server rule.

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

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

== Return value ==

None.

== Usage example (C++) ==

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