Jump to content

dxDrawColorText


Bc#

Recommended Posts

        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?

Link to comment
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?

Link to comment

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.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...