Lestat Posted June 28, 2015 Posted June 28, 2015 Is it possible to cancel this message: http://s7.postimg.org/667rxed89/mta_scr ... _08_10.png "you can only change your nick once every 5 seconds" I want to use my own dx messages for that. Thats not the only message I would like to have overriden. So, is there a way I can "catch" a message and not show it to the user?
John Smith Posted June 29, 2015 Posted June 29, 2015 addEventHandler("onPlayerChat",root,function() cancelEvent() end) -- cancels every message a player makes -- you can also try this (but i didn't try to do it before) addEventHandler("onChatMessage",root,function() cancelEvent() end) -- disables every single message of a player or used with outputChatBox
Lestat Posted June 30, 2015 Author Posted June 30, 2015 You're right Tomas, it is in the admin resource, gonna make my own Admin Panel, so it won't be needed to catch it. Also very helpful information John Smith. It will be very useful for another thing I wanna do. Thank you both.
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