31.03.2012, 01:04
Jб vi em muitos server e jб a bem falado esses textdrow , queria fazer um FS com uma so imagens me manden o link da onde eu vejo as imagens ... por enquanto e isso !
new Text:Textdraw0;
Textdraw0 = TextDrawCreate(0.000000, 1.000000, "loadsc3:loadsc3"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 4); TextDrawLetterSize(Textdraw0, 0.759999, 1.000000); TextDrawColor(Textdraw0, -1); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); TextDrawUseBox(Textdraw0, 1); TextDrawBoxColor(Textdraw0, 255); TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw0);
Topo:
Код:
new Text:Textdraw0; Код:
Textdraw0 = TextDrawCreate(0.000000, 1.000000, "loadsc3:loadsc3"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 4); TextDrawLetterSize(Textdraw0, 0.759999, 1.000000); TextDrawColor(Textdraw0, -1); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); TextDrawUseBox(Textdraw0, 1); TextDrawBoxColor(Textdraw0, 255); TextDrawTextSize(Textdraw0, 639.000000, 448.000000); |
#include <a_samp>
#if defined FILTERSCRIPT
#endif
new Text:Textdraw0;
public OnGameModeInit()
{
Textdraw0 = TextDrawCreate(0.000000, 1.000000, "loadsc3:loadsc3");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 4);
TextDrawLetterSize(Textdraw0, 0.759999, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
}
/////////////////////////////////////////////////////
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Textdraw0);
}
////////////////////////////////////////////////////
public OnPlayerRequestClass(playerid, classid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
return 1;
}
nao funciona em filter scripter ?
pawn Код:
|
#define FILTERSCRIPT
#include <a_samp>
new Text:Textdraw0;
public OnGameModeInit()
{
Textdraw0 = TextDrawCreate(0.000000, 1.000000, "loadsc3:loadsc3");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 4);
TextDrawLetterSize(Textdraw0, 0.759999, 1.000000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
}
/////////////////////////////////////////////////////
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Textdraw0);
}
////////////////////////////////////////////////////
public OnPlayerRequestClass(playerid, classid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
return 1;
}
new Text:Textdraw0;
public OnGameModeInit()
{
Textdraw0 = TextDrawCreate(0.0, 0.0, "loadsc10:loadsc10");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 4);
TextDrawLetterSize(Textdraw0,0.290000, 1.300000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
}
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
return 0;
}
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
return 0;
}
#include <a_samp>
new PlayerText:Load;
public OnPlayerConnect(playerid)
{
Load = CreatePlayerTextDraw(playerid, 0.000000, 1.000000, "loadsc3:loadsc3");
PlayerTextDrawBackgroundColor(playerid, Load, 255);
PlayerTextDrawFont(playerid, Load, 4);
PlayerTextDrawLetterSize(playerid, Load, 0.759999, 1.000000);
PlayerTextDrawColor(playerid, Load, -1);
PlayerTextDrawSetOutline(playerid, Load, 0);
PlayerTextDrawSetProportional(playerid, Load, 1);
PlayerTextDrawSetShadow(playerid, Load, 1);
PlayerTextDrawUseBox(playerid, Load, 1);
PlayerTextDrawBoxColor(playerid, Load, 255);
PlayerTextDrawTextSize(playerid, Load, 639.000000, 448.000000);
PlayerTextDrawShow(playerid, PlayerText:Load);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
PlayerTextDrawHide(playerid, PlayerText:Load);
return 1;
}
Й necessбrio 0.3e RC 4 para usar esse filterscript.
pawn Код:
|
Los como assim 0.3e RC 4 ?
tem que converte de 0.3d para 0.3e ?? sу assim vai pegar nгo entendi bem isso ! explica melhor por favor |
#include <a_samp>
new Text:Textdraw0;
public OnFilterScriptInit()
{
Textdraw0 = TextDrawCreate(0.0, 0.0, "loadsc10:loadsc10");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 4);
TextDrawLetterSize(Textdraw0,0.290000, 1.300000);
TextDrawColor(Textdraw0, -1);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 255);
TextDrawTextSize(Textdraw0, 639.000000, 448.000000);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
main()
{
print("\n");
print("");
print("\n");
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, TextDraw0);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
return 1;
}