AddServerRule
注意
这个函数是在omp v1.1.0.2612中添加的,在以前的版本中不起作用!
描述
添加服务器规则。
参数名 | 说明 |
---|---|
const rule[] | 要添加的服务器规则名称 |
const format[] | 服务器规则对应值 |
OPEN_MP_TAGS:... | 不定数量的任意标签参数 |
返回值
成功执行返回 true,否则返回 false。
示例
public OnGameModeInit()
{
AddServerRule("discord", "discord.gg/samp");
return 1;
}
相关函数
- RemoveServerRule: 移除服务器规则
- IsValidServerRule: 验证服务器规则有效性