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.
GetServerRuleFlags
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
warning
This function has not yet been implemented.
Description
Gets the flags of a server rule.
Return Values
Returns the server rule flags.
Examples
public OnGameModeInit()
{
AddServerRule("discord", "discord.gg/samp");
SetServerRuleFlags("discord", 1);
new E_SERVER_RULE_FLAGS:flags = GetServerRuleFlags("discord");
printf("Flags: %d", _:flags); // Flags: 1
return 1;
}
Related Functions
- AddServerRule: Add a server rule.
- RemoveServerRule: Remove the server rule.
- IsValidServerRule: Checks if the given server rule is valid.
- SetServerRuleFlags: Sets the flags of a server rule.