Jump to content

/me


ZeyadGTX

Recommended Posts

Posted

Hey Guys i would like to disable /me message , need help what to use ??

addEventHandler ( "onPlayerChat", root, 
    function ( msg, msgType ) 
        if msgType ==== 1 then 
            cancelEvent ()  
        end 
    end ) 
  

Posted

Try this :

onPlayerCommand 

may work .. ( tested ) :lol:

( Server Sided Function ) :roll:

addEventHandler("onPlayerCommand",root, 
function(cmd) 
if cmd == "me" then 
cancelEvent() 
end 
end) 

Posted
i still can use /me message
addEventHandler("onPlayerCommand",root, 
function(cmd) 
if cmd == "me" then 
cancelEvent() 
end 
end) 

How ? I tested it myself .. Make sure in the meta it says its a "server function"

Posted
i still can use /me message
addEventHandler("onPlayerCommand",root, 
function(cmd) 
if cmd == "me" then 
cancelEvent() 
end 
end) 

How ? I tested it myself .. Make sure in the meta it says its a "server"

Posted
Hey Guys i would like to disable /me message , need help what to use ??
addEventHandler ( "onPlayerChat", root, 
    function ( msg, msgType ) 
        if msgType ==== 1 then 
            cancelEvent ()  
        end 
    end ) 
  

That code has only one problem, you put one extra =.

Posted
Hey Guys i would like to disable /me message , need help what to use ??
addEventHandler ( "onPlayerChat", root, 
    function ( msg, msgType ) 
        if msgType ==== 1 then 
            cancelEvent ()  
        end 
    end ) 
  

That code has only one problem, you put one extra =.

There's actually 2 extra "="'s

Posted

???

addEventHandler ( "onPlayerChat", root, 
    function ( msg, msgType ) 
        if msgType == 1 then 
            cancelEvent () 
        end 
    end ) 
  

Posted
???
addEventHandler ( "onPlayerChat", root, 
    function ( msg, msgType ) 
        if msgType == 1 then 
            cancelEvent () 
        end 
    end ) 
  

This should work, I don't see why not.

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