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

No podes cambiar la fuente de estos textos.

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 (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

Hi, this is a signature.

Posted
textItemSetColor 
textItemSetScale 

Para poner textos server side no existe otra funcion.

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

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 

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.

  • Recently Browsing   0 members

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