[AJUDA] TextDraw
#1

Alguem ai pode me ajuda ? tф com um texdraw q eu fiz, mais so q naum sei coloca a parte do sistema.
no texdraw ta
=================
PING:
FPS:

SPREE:
SCORE:
=================
eu tenho score e spree tudo certo marcando em /status
mais to qrendo colocar pra mostra tudo com o texdraw tbm.
lembrando eu uso o "ladmin/users/"

o textdraw eh a seguinte



#include <a_samp>

new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;

public OnFilterScriptInit()
{
print("Jamaica textdraw");
print("ExelentGames[BoS]");

// Create the textdraws:
Textdraw0 = TextDrawCreate(507.000000, 335.000000, "PING:");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.349999, 2.699999);
TextDrawColor(Textdraw0, -16776961);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);

Textdraw1 = TextDrawCreate(508.000000, 356.000000, "SPREE:");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 2);
TextDrawLetterSize(Textdraw1, 0.389999, 2.499999);
TextDrawColor(Textdraw1, -16776961);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 0);

Textdraw2 = TextDrawCreate(508.000000, 372.000000, "SCORE:");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 2);
TextDrawLetterSize(Textdraw2, 0.389999, 2.59999;
TextDrawColor(Textdraw2, -16776961);
TextDrawSetOutline(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 0);

Textdraw3 = TextDrawCreate(507.000000, 320.000000, "FPS:");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 2);
TextDrawLetterSize(Textdraw3, 0.389999, 2.499999);
TextDrawColor(Textdraw3, -16776961);
TextDrawSetOutline(Textdraw3, 1);
TextDrawSetProportional(Textdraw3, 0);

Textdraw4 = TextDrawCreate(507.000000, 335.000000, "PING:");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 2);
TextDrawLetterSize(Textdraw4, 0.349999, 2.699999);
TextDrawColor(Textdraw4, -16776961);
TextDrawSetOutline(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);

Textdraw5 = TextDrawCreate(507.000000, 320.000000, "FPS:");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 2);
TextDrawLetterSize(Textdraw5, 0.389999, 2.499999);
TextDrawColor(Textdraw5, -16776961);
TextDrawSetOutline(Textdraw5, 1);
TextDrawSetProportional(Textdraw5, 0);

for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Textdraw3);
TextDrawShowForPlayer(i, Textdraw4);
TextDrawShowForPlayer(i, Textdraw5);
}
}
return 1;
}

public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw0);
TextDrawDestroy(Textdraw0);
TextDrawHideForAll(Textdraw1);
TextDrawDestroy(Textdraw1);
TextDrawHideForAll(Textdraw2);
TextDrawDestroy(Textdraw2);
TextDrawHideForAll(Textdraw3);
TextDrawDestroy(Textdraw3);
TextDrawHideForAll(Textdraw4);
TextDrawDestroy(Textdraw4);
TextDrawHideForAll(Textdraw5);
TextDrawDestroy(Textdraw5);
return 1;
}

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
return 1;
}

Me ajude ae galera, GRATO!
Reply


Messages In This Thread
[AJUDA] MISSГO IMPOSSIVEL PARA OS SCRIPTERS, alguem ajuda ae ? - by jamaica90 - 28.04.2012, 14:20
Re: [AJUDA] TextDraw - by SPOT_M16 - 08.05.2012, 04:32
AW: [AJUDA] TextDraw - by ChurascoDo - 25.11.2013, 21:45
Respuesta: AW: [AJUDA] TextDraw - by cantiliano - 25.11.2013, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)