Como crear un TextDraw Sencillo

Tutorial de como Crear un TextDraw Sencillo


Para comenzar Nos descargamos el siguiente programa:
TextDrawMake

Este Programa es del Creador: JESUCRISTO

____________Explicacion del Programa___________


Imagen


Ok Comienso:

El color ROJO : Es para el nombre de la Variable o Nombre del Textdraw Por ejemplo... Prueba1
El Color Azul: ES LO QUE DIRA EL TEXTDRAW
El color rosa: Es la Posicion del Textdraw
El color Marrón: Es la fuente qe usara el textdraw
El Color verde: ES EL TAMAÑO DEL TEXTDRAW
El color Amarillo: Color del texto y del fondo
El color Celeste: Creo que es para bordes negros.. Yo siempre lo pongo en 0

y damos en Make y listo :muyfeliz:

____________Ya Generado___________


Ok aqui presten mucha atención... Primero.. les qeda un codigo por ejemplo algo asi:
Código: Seleccionar todo
new Text:Prueba1; Prueba1 = TextDrawCreate(164.0, 217.0,"Ps"); TextDrawFont(Prueba1,0); TextDrawLetterSize(Prueba1,12,12); TextDrawColor(Prueba1,0x000FF); TextDrawSetShadow(Prueba1,); TextDrawSetOutline(Prueba1,0); TextDrawBackgroundColor(Prueba1,0x000FF); TextDrawUseBox(Prueba1,0);


Que aremos? Lo siguiente... Ese codigo se divide en distintas partes.. qe son:

Nos vamos a la parte de los new! y agregamos : new Text:Prueba1;

Y en public OnGameModeInit() Agregamos el :

Código: Seleccionar todo
Prueba1 = TextDrawCreate(164.0, 217.0,"Ps"); TextDrawFont(Prueba1,0); TextDrawLetterSize(Prueba1,12,12); TextDrawColor(Prueba1,0x000FF); TextDrawSetShadow(Prueba1,); TextDrawSetOutline(Prueba1,0); TextDrawBackgroundColor(Prueba1,0x000FF); TextDrawUseBox(Prueba1,0);



____________¿Como visualizarlo?___________


Ok Lo primero que debemos hacer es irnos a:
Código: Seleccionar todo
OnPlayerSpawn


Una ves ahy agregamos : TextDrawShowForPlayer(playerid, prueba1);
Explico:
Código: Seleccionar todo
Lo rojo en el TextDrawShowForPlayer es el nombre de la variable por ejemplo si pusieron Textdraw seria: TextDrawShowForPlayer(playerid, textdraw);


Y listo su TEXTDRAW Quedara creado... Cualquier duda o error en el tutorial... Avisenme Porfa :D

Hasta la proxima

No hay comentarios:

Publicar un comentario