ตรวจสอบว่าผู้เล่นลงทะเบียนกิจกรรม Team Deathmatch แล้วหรือไม่
local retval = exports.mrft_teamdeathmatch:IsRegistered()
if retval then
-- ผู้เล่นลงทะเบียน Team Deathmatch
end
ตรวจสอบว่าผู้เล่นกำลังอยู่ในกิจกรรม Team Deathmatch หรือไม่
ไม่จำเป็นต้องเรียก
IsRegistered()ก่อน
local retval = exports.mrft_teamdeathmatch:IsPlaying()
if retval then
-- ผู้เล่นกำลังเล่น Team Deathmatch
end
ดึง Stage ปัจจุบันของกิจกรรม
number: Stage ปัจจุบันของกิจกรรม ค่าอยู่ในช่วง 1 ถึง 4local retval = exports.mrft_teamdeathmatch:GetCurrentStage()
if retval then
print("Current Stage is " .. retval)
end
เปิดโหมดสร้างหรือแก้ไขบาเรียของกิจกรรม
Export นี้ไม่มีการตรวจสอบ Group ภายใน ควรเรียกใช้จากโค้ดที่ควบคุมสิทธิ์ไว้แล้ว
exports.mrft_teamdeathmatch:WallEdit()
ลบอาวุธกิจกรรมทั้งหมด หรือเลือกลบเฉพาะแผนที่ที่กำหนด
type (string): ประเภทการลบ ใช้ "global" เพื่อลบทั้งหมด หรือ "map" เพื่อลบเฉพาะแผนที่mapId (number): ID แผนที่จาก config.mapSettings ต้องส่งเมื่อ type เป็น "map"exports.mrft_teamdeathmatch:RemoveAllWeapons("global")
exports.mrft_teamdeathmatch:RemoveAllWeapons("map", 1)
ปิดการลงทะเบียนด้วย Keybinding
exports.mrft_teamdeathmatch:DisableRegister()
เปิดการลงทะเบียนด้วย Keybinding
exports.mrft_teamdeathmatch:EnableRegister()
รีโหลด Health Bar เฉพาะรูปแบบที่ 1
exports.mrft_teamdeathmatch:ReloadHealthBar()