JuniorMelo Posted October 6, 2013 Posted October 6, 2013 Hello I have a bug in a script, I can not put color team name local pTeam = getPlayerTeam( hitElement ) local iR, iG, iB = getTeamColor( pTeam ) outputChatBox ( '#ff4444[GANG] #ffffff' .. getTeamName( getTeamColor( pTeam ) ) .. ' #ff4444Esta atacando o territorio#ffffff ' .. Territorio .. ' #ff4444Da gang #ffffff' .. equipe , getRootElement(), 255, 255, 255,true ) line 55 outputChatBox ( '#ff4444[GANG] #ffffff' .. getTeamName( getTeamColor( pTeam ) ) .. ' #ff4444Esta atacando o territorio#ffffff ' .. Territorio .. ' #ff4444Da gang #ffffff' .. equipe , getRootElement(), 255, 255, 255,true ) ........... \__ ▄▂_ .........[█|||███████]▄▄▄▄▄▄▄▄▄▃▂ ..__▂▄▅█████████▅▄▃▂ I███████████████████] ...◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤ ░░░███████ ]▄▄▄▄▄▄▄▄ ▂▄▅████████▅▄▃▂ I███████████████████] ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
Castillo Posted October 6, 2013 Posted October 6, 2013 That doesn't make any sense. You can use this function to conver the R, G, B color to HEX: https://wiki.multitheftauto.com/wiki/RGBToHex NOTE: REMEMBER TO COPY THE FUNCTION SOURCE CODE, IS NOT A NATIVE MTA FUNCTION. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
JuniorMelo Posted October 6, 2013 Author Posted October 6, 2013 That doesn't make any sense.You can use this function to conver the R, G, B color to HEX: https://wiki.multitheftauto.com/wiki/RGBToHex NOTE: REMEMBER TO COPY THE FUNCTION SOURCE CODE, IS NOT A NATIVE MTA FUNCTION. Thanks castillo, helped a lot !!! ........... \__ ▄▂_ .........[█|||███████]▄▄▄▄▄▄▄▄▄▃▂ ..__▂▄▅█████████▅▄▃▂ I███████████████████] ...◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤ ░░░███████ ]▄▄▄▄▄▄▄▄ ▂▄▅████████▅▄▃▂ I███████████████████] ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
Castillo Posted October 6, 2013 Posted October 6, 2013 Did you get it working? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
JuniorMelo Posted October 6, 2013 Author Posted October 6, 2013 Did you get it working? outputChatBox ( '#ff4444[GANG] #ffffff' .. RGBToHex(iR, iG, iB) .. '' .. getTeamName(pTeam) .. ' #ff4444Esta atacando o territorio#ffffff ' .. territorio .. ' #ff4444Da gang #ffffff' .. RGBToHex(rR,gG,bB) .. '' .. equipe , getRootElement(), 255, 255, 255,true ) ........... \__ ▄▂_ .........[█|||███████]▄▄▄▄▄▄▄▄▄▃▂ ..__▂▄▅█████████▅▄▃▂ I███████████████████] ...◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤ ░░░███████ ]▄▄▄▄▄▄▄▄ ▂▄▅████████▅▄▃▂ I███████████████████] ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
Castillo Posted October 6, 2013 Posted October 6, 2013 So, it works? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
JuniorMelo Posted October 6, 2013 Author Posted October 6, 2013 So, it works? yes ........... \__ ▄▂_ .........[█|||███████]▄▄▄▄▄▄▄▄▄▃▂ ..__▂▄▅█████████▅▄▃▂ I███████████████████] ...◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤ ░░░███████ ]▄▄▄▄▄▄▄▄ ▂▄▅████████▅▄▃▂ I███████████████████] ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
Castillo Posted October 6, 2013 Posted October 6, 2013 Ok, good to hear. You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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