[ayuda] textdraw
#3

Vamos a poner un ejemplo:

1. Definirlo:

pawn Код:
// Arriva del todo.
new Text:Textdraw0;
2. Crearlo:

pawn Код:
public OnGameModeInit()
{
  Textdraw0 = TextDrawCreate(210.000000, 120.000000, "Mi texto");
  TextDrawBackgroundColor(Textdraw0, 255);
  TextDrawFont(Textdraw0, 0);
  TextDrawLetterSize(Textdraw0, 1.240000, 5.399999);
  TextDrawColor(Textdraw0, -16776961);
  TextDrawSetOutline(Textdraw0, 0);
  TextDrawSetProportional(Textdraw0, 1);
  TextDrawSetShadow(Textdraw0, 1);
  return 1;
}
3. Mostrarlo y quitarlo (opcional):

pawn Код:
public OnPlayerConnect(playerid)
{
  TextDrawShowForPlayer(playerid, Textdraw0);
  SetTimer("QuitarTextoInicio", 6000, true);  // Esto es para quitarlo (opcional). 6 segundos.
  return 1;
}

// Abajo.

forward QuitarTextoInicio();
public QuitarTextoInicio()
{
  TextDrawDestroy(Textdraw0);
  return 1;
}
Reply


Messages In This Thread
[ayuda] textdraw - by leociclon - 14.06.2010, 09:48
Re: [ayuda] textdraw - by RatHack - 14.06.2010, 12:41
Re: [ayuda] textdraw - by CristianTdj - 14.06.2010, 13:26
Re: [ayuda] textdraw - by MrDeath537 - 14.06.2010, 16:21
Re: [ayuda] textdraw - by leociclon - 14.06.2010, 17:47
Re: [ayuda] textdraw - by Zamaroht - 14.06.2010, 19:01
Re: [ayuda] textdraw - by Luis_Valenzuela - 14.06.2010, 19:59
Re: [ayuda] textdraw - by leociclon - 14.06.2010, 20:47
Re: [ayuda] textdraw - by CristianTdj - 14.06.2010, 20:57
Re: [ayuda] textdraw - by Zamaroht - 14.06.2010, 21:51

Forum Jump:


Users browsing this thread: 2 Guest(s)