Jump to content

Help


Recommended Posts

@Tete, you can't do it with these function.

@StevyDK, you have to use the event onPlayerChat.

addEventHandler("onPlayerChat", root, 
function(msg, msgType) 
    if msgType == 1 then 
        cancelEvent() 
        outputChatBox("* "..getPlayerName(source).." Say "..msg, root, 255, 255, 255) 
    end 
end) 

Link to comment
@Tete, you can't do it with these function.

@StevyDK, you have to use the event onPlayerChat.

addEventHandler("onPlayerChat", root, 
function(msg, msgType) 
    if msgType == 1 then 
        cancelEvent() 
        outputChatBox("* "..getPlayerName(source).." Say "..msg, root, 255, 255, 255) 
    end 
end) 

Why can't i?

Link to comment
@Tete, you can't do it with these function.

@StevyDK, you have to use the event onPlayerChat.

addEventHandler("onPlayerChat", root, 
function(msg, msgType) 
    if msgType == 1 then 
        cancelEvent() 
        outputChatBox("* "..getPlayerName(source).." Say "..msg, root, 255, 255, 255) 
    end 
end) 

Why can't i?

Simply because you will cancel the command 'me' with the event onPlayerCommand so that you won't be able to use it anymore even with addCommandHandler.

Be sure it's server side.

Thanks working now 100% Thanks bro, and ramdan kareem. :)

You're welcome.

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