warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
SetServerRule
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Add a server rule.
Parameters
Name | Description |
---|---|
const rule[] | The server rule name to add. |
const format[] | The server rule value. |
OPEN_MP_TAGS:... | Indefinite number of arguments of any tag. |
Returns
Returns true if the function executed successfully, otherwise false.
Examples
public OnGameModeInit()
{
SetServerRule("discord", "discord.gg/samp");
return 1;
}
Notes
tip
This function is the same as AddServerRule.
Related Functions
- RemoveServerRule: Remove the server rule.
- IsValidServerRule: Checks if the given server rule is valid.