v = {}
addEvent ("MUTE",true)
addEventHandler ("MUTE",root,
function (plr,name)
if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Support")) ) then
if not isTimer (v[plr]) and not getElementData(plr,"MUTED") then
setElementData (plr,"MUTED",true)
outputChatBox ("[support System]: ["..name:gsub("#%x%x%x%x%x%x","").."] Successfuly muted.",source,232,240,14)
v[plr] = setTimer (function ()
removeElementData (plr,"MUTED")
outputChatBox ("[support System]: ["..name:gsub("#%x%x%x%x%x%x","").."]Unmuted Successfuly ",plr,5,255,5)
end,unmuteTime,1)
else return
outputChatBox ("[support System]: ["..name:gsub("#%x%x%x%x%x%x","").."] is already muted.",source,232,240,14)
end
end
end
)