Jump to content

GlobalChat problem


Manic69

Recommended Posts

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
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)

 

  • Like 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...