Words = {
["sever"] = true,
}
----- Muting Function
addEventHandler("onPlayerChat", getRootElement(),
function(msg, msgType)
local theMsg = msg
if Words[theMsg] then
cancelEvent()
pName = getPlayerName(source)
outputChatBox(" (( #FFFFFF".. pName .." #ff0000 )) #808080 Have Been Muted By Consle Rason = Bad Mouth",getRootElement(),255,0,0,true)
setPlayerMuted(source, true)
setTimer (function ( player )
setPlayerMuted (player, false )
outputChatBox(" (( #FFFFFF".. pName .." #0000ff )) #ff0000 You Have Been UnMuted By Consle Don't Try That Agine",getRootElement(),255,0,0,true)
end,
300000,1, source )
end
end
)
Should Have Admin Rights | resource.Name