ZeyadGTX Posted June 29, 2014 Share 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 ) Link to comment
#1ERuPTiON Posted June 29, 2014 Share 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) Link to comment
ZeyadGTX Posted June 29, 2014 Author Share Posted June 29, 2014 i still can use /me message addEventHandler("onPlayerCommand",root, function(cmd) if cmd == "me" then cancelEvent() end end) Link to comment
#1ERuPTiON Posted June 29, 2014 Share 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" Link to comment
#1ERuPTiON Posted June 29, 2014 Share 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" Link to comment
ZeyadGTX Posted June 29, 2014 Author Share Posted June 29, 2014 yes it does "Ss" name="me" version="1.0.0" type="script"/> Link to comment
Castillo Posted June 29, 2014 Share 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 =. Link to comment
xXMADEXx Posted June 29, 2014 Share 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 Link to comment
ZeyadGTX Posted June 29, 2014 Author Share Posted June 29, 2014 ??? addEventHandler ( "onPlayerChat", root, function ( msg, msgType ) if msgType == 1 then cancelEvent () end end ) Link to comment
xXMADEXx Posted June 29, 2014 Share 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. Link to comment
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