ZeyadGTX Posted June 29, 2014 Posted June 29, 2014 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 )
#1ERuPTiON Posted June 29, 2014 Posted June 29, 2014 Try this : onPlayerCommand may work .. ( tested ) ( Server Sided Function ) addEventHandler("onPlayerCommand",root, function(cmd) if cmd == "me" then cancelEvent() end end)
ZeyadGTX Posted June 29, 2014 Author Posted June 29, 2014 i still can use /me message addEventHandler("onPlayerCommand",root, function(cmd) if cmd == "me" then cancelEvent() end end)
#1ERuPTiON Posted June 29, 2014 Posted June 29, 2014 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"
#1ERuPTiON Posted June 29, 2014 Posted June 29, 2014 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"
ZeyadGTX Posted June 29, 2014 Author Posted June 29, 2014 yes it does "Ss" name="me" version="1.0.0" type="script"/>
Castillo Posted June 29, 2014 Posted June 29, 2014 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 =.
xXMADEXx Posted June 29, 2014 Posted June 29, 2014 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
ZeyadGTX Posted June 29, 2014 Author Posted June 29, 2014 ??? addEventHandler ( "onPlayerChat", root, function ( msg, msgType ) if msgType == 1 then cancelEvent () end end )
xXMADEXx Posted June 29, 2014 Posted June 29, 2014 ??? addEventHandler ( "onPlayerChat", root, function ( msg, msgType ) if msgType == 1 then cancelEvent () end end ) This should work, I don't see why not.
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