1LoL1 Posted March 8, 2014 Posted March 8, 2014 Anyone knows how to combine mute global chat with 'X' for example, when I give /mute LoL so I can not mute the chat "T" but also to chat "X" please help me.
Castillo Posted March 8, 2014 Posted March 8, 2014 What is chat "X"? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted March 8, 2014 Posted March 8, 2014 Post the script for that chat. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
1LoL1 Posted March 8, 2014 Author Posted March 8, 2014 Post the script for that chat. ok -- Client bindKey("x", "down", "chatbox", "global") -- Server function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ) local name = getPlayerName(thePlayer) outputChatBox("#009BFFGlobalChat: #FFFFFF"..name..": #99FF00"..message, getRootElement(), 255, 255, 255, true) end addCommandHandler("global", globalMessage)
Castillo Posted March 8, 2014 Posted March 8, 2014 function globalMessage ( thePlayer, cmd, ... ) if isPlayerMuted ( thePlayer ) then outputChatBox ( "You are muted!", thePlayer, 255, 0, 0 ) return end local message = table.concat ( { ... }, " " ) local name = getPlayerName ( thePlayer ) outputChatBox ( "#009BFFGlobalChat: #FFFFFF".. name ..": #99FF00".. message, getRootElement(), 255, 255, 255, true ) end addCommandHandler ( "global", globalMessage ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
1LoL1 Posted March 8, 2014 Author Posted March 8, 2014 (edited) function globalMessage ( thePlayer, cmd, ... ) if isPlayerMuted ( thePlayer ) then outputChatBox ( "You are muted!", thePlayer, 255, 0, 0 ) return end local message = table.concat ( { ... }, " " ) local name = getPlayerName ( thePlayer ) outputChatBox ( "#00FF00Global: #FFFFFF".. name ..": #99FF00".. message, getRootElement(), 255, 255, 255, true ) end addCommandHandler ( "global", globalMessage ) Thanks. Edited April 1, 2014 by Guest
Castillo Posted March 8, 2014 Posted March 8, 2014 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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