diff --git a/MorbusGamemode/gamemodes/morbusgame/gamemode/server/sv_chat.lua b/MorbusGamemode/gamemodes/morbusgame/gamemode/server/sv_chat.lua index 0fd8ac7..fa283a1 100644 --- a/MorbusGamemode/gamemodes/morbusgame/gamemode/server/sv_chat.lua +++ b/MorbusGamemode/gamemodes/morbusgame/gamemode/server/sv_chat.lua @@ -67,6 +67,11 @@ end function GM:PlayerSay(ply, text, to_all) -- Shitty chat shit --ToDo: REDO THIS if not ValidEntity(ply) then return end + + --check ulx if the client is gagged and block chatting + --assume the client isn't gaged if ulx isn't present + if ply:GetNWBool("ulx_gagged", false) then return "" end + if ply.Gagged then return "" end -- for later use to_all = !to_all @@ -212,8 +217,10 @@ function MuteForRestart(state) end function GM:PlayerCanHearPlayersVoice(listener, speaker) - - if mute_all then + + -- If mute all clients or the client is muted from ulx + -- Notice: returns false if ulx nw boolean is not present + if (mute_all || speaker:GetNWBool("ulx_muted", false)) then return false,false end