local MutedSerial = {}
addEventHandler("onPlayerChat", root,
function(msg)
if msg == "ممكن ادمنية" then
local serial = getPlayerSerial(source)
if MutedSerial[serial] then
killTimer(MutedSerial[serial])
MutedSerial[serial] = nil
end
setPlayerMuted(source, true)
outputChatBox(getPlayerName(source).." لقد حصل على ميوت 3دقايق", root, 255,0,0)
MutedSerial[serial] = setTimer(function(serial)
MutedSerial[serial] = nil
for _,player in ipairs(getElementsByType('player')) do
if getPlayerSerial(player) == serial and isPlayerMuted(player) then
setPlayerMuted(player, false)
outputChatBox(getPlayerName(player).." لقد تم فك الميوت عنك لا تعيدها", root, 255,0,0)
end
end
end,160000,1,serial)
end
end)
هذا كود اعطاء ميوت اذا احد طلب ادمنية او حتى اذا قال كلام مو زين
بس الي ابغيه اذا احد قال هالكلام يحصل ميوت وتنحذف الكلمة من الشات