Jump to content

How to remove player colors when using cmd


GuyFromPast

Recommended Posts

Posted

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 :P

Posted

/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)!

Posted

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 :P

Posted

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)!

Posted

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)!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...