Manic69 Posted January 1, 2017 Share Posted January 1, 2017 Help me pls ---------------------------------------------------------------------------------- client: bindKey("b", "down", "chatbox", "global") -------------------------------------------------------------------------------------------------------------------- server function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) outputChatBox("#a22222[Globa]|#F0E68C"..name..": #ffffff"..message, getRootElement(), 255, 255, 255, true) end addCommandHandler("global", globalMessage) ----------------------------------------------------------------------------------------------------------------------------------------- If I mute someone he dont get mute in global chat. Sorry for my bad eng . Link to comment
4O4 Posted January 1, 2017 Share Posted January 1, 2017 You need to implement mute handling in your globalMessage function, check IsPlayerMuted 1 Link to comment
Manic69 Posted January 2, 2017 Author Share Posted January 2, 2017 I try it but don't work. How to add it ? Link to comment
Best-Killer Posted January 2, 2017 Share Posted January 2, 2017 function globalMessage(thePlayer, cmd, ...) if isPlayerMuted ( thePlayer ) then outputChatBox("You're muted",thePlayer,255,255,255) else local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) outputChatBox("#a22222[Globa]|#F0E68C"..name..": #ffffff"..message, getRootElement(), 255, 255, 255, true) end end addCommandHandler("global", globalMessage) 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now