Jump to content

dxDrawColorText


Bc#

Recommended Posts

Posted
        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?

Bc Media Clan XPG Foro
mtasa://104.223.20.159:21003

Posted

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.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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 Media Clan XPG Foro
mtasa://104.223.20.159:21003

Posted

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 Media Clan XPG Foro
mtasa://104.223.20.159:21003

  • Recently Browsing   0 members

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