Pregunta Al elejir los personajes
#1

Buenas bueno esta es una pregunta muy simple para los que saben hacerca de TextDraw bueno queria saber como poner el TextDraw en la seleccion de los Personajes de modo que cuando este Elijiendo algun Skin especifico le aparezca el TextDraw que ise, el TextDraw que cree es este:

Код:
//TextDraw developed using Zamaroht's in-game TextDraw system
 
//On top of script:
new Text:Textdraw0;
 
//In OnGameModeInit or any other place, we procced to create our textdraw:
Textdraw0 = TextDrawCreate(220.000000,417.000000,"[Administradores Generales]");
TextDrawAlignment(Textdraw0,1);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawFont(Textdraw0,1);
TextDrawLetterSize(Textdraw0,0.399999,1.600000);
TextDrawColor(Textdraw0,0x00ff00cc);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,6);
 
//You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and
//TextDrawDestroy functions to show, hide, and destroy the textdraw.
Uso el Programa de TextDraw de Zamarot

Bueno el caso es queria saber donde coloco los codigos del TextDraw para que me aparezca en la seleccion de skin la cual es (OnPlayerRequestClass) Bueno les agradeceria muchisimo que me ayudaran xd

De ante mano muchisimas gracias
Reply
#2

Puedes usar esto xD

Esto mostrara tu TextDraw durante toda la seleccion de pesonaje


pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
  TextDrawShowForPlayer(playerid,Textdraw0);
  return 1;
}

public OnPlayerRequestSpawn(playerid)
{
  TextDrawHideForPlayer(playerid,Textdraw0);
  return 1;
}
Reply
#3

Quote:
Originally Posted by [TBB
Darkness ]
Puedes usar esto xD

Esto mostrara tu TextDraw durante toda la seleccion de pesonaje


pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
  TextDrawShowForPlayer(playerid,Textdraw0);
  return 1;
}

public OnPlayerRequestSpawn(playerid)
{
  TextDrawHideForPlayer(playerid,Textdraw0);
  return 1;
}
Muchisimas gracias Pero ahora para que el TextDraw Le aparezca a un Skin Especifico? Abra algun codigo? Ayuda plis xd
Reply
#4

Utiliza:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
  //----
  new Float:Skin;
  Skin = GetPlayerSkin(playerid);
  if(Skin(playerid) == [ID del skin sin "[]"])
  {
     TextDrawShowForPlayer(playerid,Textdraw0);
  }
return 1;
}
y...

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  TextDrawHideForPlayer(playerid,Textdraw0);
  return 1;
}
Salu2 y suerte
Reply
#5

Quote:
Originally Posted by //~Juam
Utiliza:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
  //----
  new Float:Skin;
  Skin = GetPlayerSkin(playerid);
  if(Skin(playerid) == [ID del skin sin "[]"])
  {
     TextDrawShowForPlayer(playerid,Textdraw0);
  }
return 1;
}
y...

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  TextDrawHideForPlayer(playerid,Textdraw0);
  return 1;
}
Salu2 y suerte
Muchas gracias pero porque me salen estos errores?
Код:
C:\Documents and Settings\Master Pro\Escritorio\Server e.e\gamemodes\[TDM2].pwn(171) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Master Pro\Escritorio\Server e.e\gamemodes\[TDM2].pwn(171) : warning 215: expression has no effect
C:\Documents and Settings\Master Pro\Escritorio\Server e.e\gamemodes\[TDM2].pwn(171) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Master Pro\Escritorio\Server e.e\gamemodes\[TDM2].pwn(171) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Master Pro\Escritorio\Server e.e\gamemodes\[TDM2].pwn(171) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#6

Error mio. Disculpas, me falto un ")"

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
  //----
  new Float:Skin;
  Skin = GetPlayerSkin(playerid);
  if(Skin(playerid) == [ID del skin sin "[]"]))
  {
     TextDrawShowForPlayer(playerid,Textdraw0);
  }
return 1;
}
y

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  TextDrawHideForPlayer(playerid,Textdraw0);
  return 1;
}
Salu2
Reply
#7

Quote:
Originally Posted by //~Juam
Error mio. Disculpas, me falto un ")"

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
 //----
  new Float:Skin;
  Skin = GetPlayerSkin(playerid);
  if(Skin(playerid) == [ID del skin sin "[]"]))
  {
    TextDrawShowForPlayer(playerid,Textdraw0);
  }
return 1;
}
y

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  TextDrawHideForPlayer(playerid,Textdraw0);
  return 1;
}
Salu2
Muchisimas gracias me salio todo bien pueden Cerrar
Reply
#8

De nada. Para eso estamos.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)