opnaiC Posted July 10, 2016 Share Posted July 10, 2016 How I cant turn of /me and the normal chat ? Example: function blockChatMessage(message, messageType) cancelEvent() end addEventHandler( "onPlayerChat", getRootElement(), blockChatMessage) addEventHandler ( "onPlayerChat", root, function ( _, tp) if ( tp == 1 ) then cancelEvent ( ) end end ) The problem is both dont work together .. Link to comment
Tails Posted July 10, 2016 Share Posted July 10, 2016 I don't see anything wrong with the first function addEventHandler("onPlayerCommand",function(cmd) if cmd == "me" then cancelEvent() end end) 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