Chuyển tới nội dung chính

SetServerRuleFlags

cảnh báo

Đã thêm hàm trong phiên bản omp v1.1.0.2612. Mục này không hoạt động trên các phiên bản cũ hơn!

cảnh báo

This function has not yet been implemented.

Description​

Sets the flags of a server rule.

Parameters​

NameDescription
const rule[]The server rule name.
E_SERVER_RULE_FLAGS:flagsThe flags to set.

Returns​

Returns true if the function executed successfully, otherwise false.

Examples​

public OnGameModeInit()
{
AddServerRule("discord", "discord.gg/samp");
SetServerRuleFlags("discord", 1);
return 1;
}