• Small script im not sure about
    3 replies, posted
[CODE]function quiet( ply ) if (!IsValid(ply)) then RunConsoleCommand("ulx", "gag", "" .. ply:Nick()") RunConsoleCommand("ulx", "mute", "" .. ply:Nick()") (GetRoundState() != ROUND_ACTIVE) then RunConsoleCommand("ulx", "ungag", "" .. ply:Nick()") RunConsoleCommand("ulx", "unmute", "" .. ply:Nick()") end hook.Add("PlayerSay", "quiet", quiet)[/CODE] is this correct?
so you don't want anyone to talk while the round is active?
PlayerSay is text communication. You should just return ""; if you don't want them to talk. If you're talking about voice Communication, you'd return false, false; on PlayerCanHearPlayersVoice
I wanted to make it so people are muted,there is a other part of the script aswell if you want me to post that i will below,basically,i have a !ghost command for my TTT and people can talk to in game players,To stop ghosting i wanted them to be gaged and muted when they are in spectator mode
Sorry, you need to Log In to post a reply to this thread.