dzek (varez) Posted February 19, 2010 Share Posted February 19, 2010 (edited) addEventHandler("onClientChatMessage", getRootElement(), function() cancelEvent() end) this dont work. its not possible to cancel this event? Edited February 21, 2010 by Guest Link to comment
Andre9977 Posted February 19, 2010 Share Posted February 19, 2010 Try this: addEventHandler("onClientChatMessage", getRootElement(), cancelEvent) Link to comment
Gamesnert Posted February 19, 2010 Share Posted February 19, 2010 If I remember correctly, this event indeed can't be canceled. Your best way of canceling it would be onPlayerChat. Link to comment
dzek (varez) Posted February 20, 2010 Author Share Posted February 20, 2010 but im trying to disable own text when written on chat. if you write something its added clientside on the chat .. Link to comment
Dark Dragon Posted February 20, 2010 Share Posted February 20, 2010 well if it is in your own script you can simply use an if else statement right there, can't you? Link to comment
dzek (varez) Posted February 21, 2010 Author Share Posted February 21, 2010 erm,i dont understand your question i cannot cancel the event, if else dont help me in any way Link to comment
Gamesnert Posted February 21, 2010 Share Posted February 21, 2010 erm,i dont understand your question He means that if you output text (for instance with outputChatBox) you can check whether or not to output it at that time, instead of in an event. For as far as I can understand. 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