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