flashman Posted June 28, 2013 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.
fmj02 Posted June 28, 2013 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.
flashman Posted June 28, 2013 Author Posted June 28, 2013 Oh yes, thank you very much. Sorry for this.
flashman Posted June 28, 2013 Author 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!
iPrestege Posted June 28, 2013 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
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