ข้ามไปยังเนื้อหาหลัก

AddServerRule

คำเตือน

ฟังก์ชันนี้ถูกเพิ่มใน omp v1.1.0.2612 และจะไม่ทำงานในเวอร์ชันก่อนหน้า!

Description​

Add a server rule.

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()
{
AddServerRule("discord", "discord.gg/samp");
return 1;
}