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

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

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...