Phoenixx Posted October 19, 2013 Share Posted October 19, 2013 I am running Global Chat on my server , and when I mute player he can still talk ?? ~~~~~ PLEASE HELP ~~~~~~~ Link to comment
Castillo Posted October 19, 2013 Share Posted October 19, 2013 What resource is that? post the script. Link to comment
TAPL Posted October 19, 2013 Share Posted October 19, 2013 You need to make sure that the player not muted before output the text. isPlayerMuted Link to comment
Phoenixx Posted October 19, 2013 Author Share Posted October 19, 2013 script is file called "globalchat.zip" Inside it: Client Side: bindKey("X", "down", "chatbox", "Global") Server side: function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) outputChatBox("#a22222Global|#FFFFFF"..name..": #aaaaaa"..message, getRootElement(), 255, 255, 255, true) end addCommandHandler("Global", globalMessage) ~I ask too many questions sorry Link to comment
Castillo Posted October 19, 2013 Share Posted October 19, 2013 function globalMessage ( thePlayer, cmd, ... ) if ( not isPlayerMuted ( thePlayer ) ) then local message = table.concat ( { ... }, " " ) local name = getPlayerName ( thePlayer ) outputChatBox ( "#a22222Global|#FFFFFF".. name ..": #aaaaaa".. message, getRootElement(), 255, 255, 255, true ) else outputChatBox ( "You're muted!", thePlayer, 255, 0, 0 ) end end addCommandHandler ( "Global", globalMessage ) Link to comment
Phoenixx Posted October 19, 2013 Author Share Posted October 19, 2013 Thank you very much ! 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