flashman Posted June 28, 2013 Share Posted June 28, 2013 cancelEvent () outputChatBox(text) end addEventHandler("onPlayerChat", getRootElement(), PlayerText) Why doesen't the event get cancelled? My original message still gets sent. Link to comment
fmj02 Posted June 28, 2013 Share Posted June 28, 2013 Maybe you have a resource with the same event turned on.. like freeroam? According to this example it should work well. Link to comment
flashman Posted June 28, 2013 Author Share Posted June 28, 2013 Oh yes, thank you very much. Sorry for this. Link to comment
flashman Posted June 28, 2013 Author Share Posted June 28, 2013 One more question: outputChatBox("#8F8F8F [ #FFFFFF Admin #8F8F8F ]"..getPlayerName(source)..":"..text) But the text isn't colorful! The hex codes dont change to colors! Link to comment
iPrestege Posted June 28, 2013 Share Posted June 28, 2013 One more question: outputChatBox("#8F8F8F [ #FFFFFF Admin #8F8F8F ]"..getPlayerName(source)..":"..text) But the text isn't colorful! The hex codes dont change to colors! outputChatBox("#8F8F8F [ #FFFFFF Admin #8F8F8F ]"..getPlayerName(source)..":"..text,element,r,g,b,true) Wiki : outputChatBox 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