GuyFromPast Posted September 26, 2010 Share Posted September 26, 2010 Hello Multi Theft Auto community, i need help with scripting how to remove player colors when he type.. like in /me command everything is same color.. maybe u help me or just tell me in wich resource is /me command Thanks for your attention cant wait for ur answers Link to comment
dzek (varez) Posted September 26, 2010 Share Posted September 26, 2010 /me is build-in in mta check https://wiki.multitheftauto.com/wiki/OnPlayerChat cancel if messageType==1 and outputChatBox whatever you want Link to comment
GuyFromPast Posted September 26, 2010 Author Share Posted September 26, 2010 Yeah but i can't change player name color there.. i tryed with SetPlayerTagColor but still no luck i wanna make similar command like /me but only problem is that it include player color not that color that i want like ur name is #00ff00varez it says ((green))varez((red))is driving but i need ((red))varez((red))is driving Q_Q hope u understand me Link to comment
dzek (varez) Posted September 26, 2010 Share Posted September 26, 2010 so you just want to remove color tag from script? here: function removeColorCodes(str) return (string.gsub(str, "#[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]", "")) end not tested but should work Link to comment
GuyFromPast Posted September 26, 2010 Author Share Posted September 26, 2010 (edited) *Script removed* Edited September 27, 2010 by Guest Link to comment
dzek (varez) Posted September 26, 2010 Share Posted September 26, 2010 you don't have idea about coding, right? get back to the tutorial. until you know what to do with code i gave you in last post. i can't keep making everything for you..... 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