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 ) My nick in MTA is Spider
#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) My nick in MTA is Spider
#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"/> My nick in MTA is Spider
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 =. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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 The Ultimate Lua Tutorial! | MTA PHP SDK
ZeyadGTX Posted June 29, 2014 Author Posted June 29, 2014 ??? addEventHandler ( "onPlayerChat", root, function ( msg, msgType ) if msgType == 1 then cancelEvent () end end ) My nick in MTA is Spider
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. The Ultimate Lua Tutorial! | MTA PHP SDK
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