//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.
public OnPlayerRequestClass(playerid, classid)
{
TextDrawShowForPlayer(playerid,Textdraw0);
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
TextDrawHideForPlayer(playerid,Textdraw0);
return 1;
}
|
Originally Posted by [TBB
Darkness ]
Puedes usar esto xD Esto mostrara tu TextDraw durante toda la seleccion de pesonaje pawn Код:
|
public OnPlayerRequestClass(playerid, classid)
{
//----
new Float:Skin;
Skin = GetPlayerSkin(playerid);
if(Skin(playerid) == [ID del skin sin "[]"])
{
TextDrawShowForPlayer(playerid,Textdraw0);
}
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
TextDrawHideForPlayer(playerid,Textdraw0);
return 1;
}
|
Originally Posted by //~Juam
Utiliza:
pawn Код:
pawn Код:
|
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.
public OnPlayerRequestClass(playerid, classid)
{
//----
new Float:Skin;
Skin = GetPlayerSkin(playerid);
if(Skin(playerid) == [ID del skin sin "[]"]))
{
TextDrawShowForPlayer(playerid,Textdraw0);
}
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
TextDrawHideForPlayer(playerid,Textdraw0);
return 1;
}
|
Originally Posted by //~Juam
Error mio. Disculpas, me falto un ")"
pawn Код:
pawn Код:
|