Jump to content

(Help-me) how to run the command and not pass the command as chat


Oguri

Recommended Posts

 

function globalMessage ( source, cmd, ... )
    if isPlayerMuted ( source ) then
        outputChatBox ( "[ChatM]:Estas mutado", thePlayer, 84, 84, 84 )
        return
    end
    local message = table.concat ( { ... }, " " )
    local name = getPlayerName(source)
    local gang = getElementData( source, "gang" )

if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Console" ) ) then
       outputChatBox("[ChatM] #BEBEBE "..name..": #FDFDFD"..message, getRootElement(), 255, 0, 0, true) --
       return
    end

    outputChatBox("#94CE9F[ForaDoRp] "..name..": #FDFDFD"..message, getRootElement(), 255, 255, 255, true)
end

addCommandHandler("ChatM", globalMessage)

 

bindKey("t", "down", "chatbox", "ChatM")
 

 

 

 

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