P[ow]er Posted August 30, 2016 Share Posted August 30, 2016 hello guys there's cods and it gives clan colour to player by RGBToHex(r,g,b) but if the player isn't in the clan dxdrawtext or nothing else works , whats the reason of this? thanks https://wiki.multitheftauto.com/wiki/RGBToHex function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end dxDrawText("Nick:"..RGBToHex(r,g,b)..""..getPlayerName(localPlayer), 1095*sW, 567*sH, 1265*sW, 700*sH, tocolor(255, 255, 255, 255), 1.20, "default-bold", "left", "top", false, true, false, true, false) Link to comment
Gravestone Posted August 30, 2016 Share Posted August 30, 2016 if getPlayerTeam(localPlayer) then r, g, b = getTeamColor(getPlayerTeam(localPlayer)) else r, g, b = getPlayerNametagColor(localPlayer) end Link to comment
P[ow]er Posted August 30, 2016 Author Share Posted August 30, 2016 if getPlayerTeam(localPlayer) then r, g, b = getTeamColor(getPlayerTeam(localPlayer)) else r, g, b = getPlayerNametagColor(localPlayer) end ty it worked Link to comment
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