முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

SetServerRule

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Add a server rule.

Parameters​

NameDescription
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;
}

Good to know​

குறிப்பு

This function is the same as AddServerRule.