GuyFromPast Posted September 26, 2010 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
dzek (varez) Posted September 26, 2010 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 Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
GuyFromPast Posted September 26, 2010 Author 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
dzek (varez) Posted September 26, 2010 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 Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
GuyFromPast Posted September 26, 2010 Author Posted September 26, 2010 (edited) *Script removed* Edited September 27, 2010 by Guest
dzek (varez) Posted September 26, 2010 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..... Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
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