Jump to content

Cambiar Estiloi de text


CeKiT

Recommended Posts

Posted

Hola MTA.

Como podría cambiar el estilo de el original de texto cuando gana un team en el stealth osea este:

  
redwinsdisplay = textCreateDisplay() 
local redtext = textCreateTextItem ( "EQUIPO ROJO! Gana la batalla!", 0.5, 0.5, "low", 255, 0, 0, 255, 3, "center", "center" ) 

Osea cambiar fuente, estilo, color, que mas se puede hacer?.

Gracias

Posted (edited)
y no se puede editarle nada. Oh que funcion debo usar para poner otro texto.
dxDrawText 

en ClientSide, o tambien podes usar labels (de las funciones GUI)

Edited by Guest
Posted

Entonces quedaria:

redwinsdisplay = textItemGetColor ( redtext )

if ( r == 0 ) and ( g == 255 ) and ( b == 0 ) then

textItemSetColor ( theTextItem, 0, 0, 255, 255 )

end

esta bien esto? Es que estoy en mi celular y quiero tener el script para cuando llege a mi casa.

Gracias

Posted

No, textItemGetColor devuelve 4 argumentos: r, g, b, a.

r, g, b = textItemGetColor ( redtext ) 
if ( r == 0 ) and ( g == 255 ) and ( b == 0 ) then 
     textItemSetColor ( theTextItem, 0, 0, 255, 255 ) 
end 

  • Recently Browsing   0 members

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