Bc# Posted November 20, 2012 Posted November 20, 2012 dxDrawColorText (getPlayerName(Spectate.target, "true", "true", "true") , sW/1.35, sH-85, 200, 70, tocolor(255,255, 255, 255), 0.5, font1, "center", "1", false, false, true) ¿Como hago para que me muestre con color del player en color?
Castillo Posted November 20, 2012 Posted November 20, 2012 La funcion dxDrawText ahora soporta colores HEX, asi que no hace falta que uses una funcion propia ( dxDrawColorText ). Fijate en la wiki, hay un argumento para activarlos.
Bc# Posted November 20, 2012 Author Posted November 20, 2012 La funcion dxDrawText ahora soporta colores HEX, asi que no hace falta que uses una funcion propia ( dxDrawColorText ).Fijate en la wiki, hay un argumento para activarlos. dxDrawText(getPlayerName(Spectate.target, "true", "true", "true"), sW/1.35, sH-85, 200, 70, tocolor(255, 255, 255, 255), 1, font, "center", "top", false, false, true, true, true) ¿A esto te refieres?
Bc# Posted November 20, 2012 Author Posted November 20, 2012 Así me funcionó dxDrawText(getPlayerNametagColor(Spectate.target, "true", "true", "true"), sW/1.35, sH-85, 200, 70, tocolor(255, 255, 255, 255), 0.5, font1, "center", "center", false, false, true, true, true) Pero quise ponerle color al clan así, pero no funciona. local r,g,b = 255,255,255 local team = getPlayerTeam(Spectate.target, "true", "true", "true") if team then r,g,b = getTeamColor(team) end dxDrawColorText (getPlayerNametagText(Spectate.target, "true", "true", "true") , sW/1.35, sH-85, 200, 70, tocolor(255,255, 255, 255), 0.5, font1, "center", "1", false, false, true) Alguna ayuda.
Bc# Posted November 20, 2012 Author Posted November 20, 2012 Problema solucionado no eh dicho nada xDD
Recommended Posts