[FilterScript] [T.D.I.S] TextDraw Information System (GodFather/ThugLife)
#1

Й um simples TextDraw que mostra no fundo da tela (canto inferior esquerdo) mostra o Level do jogador, o respeito, o dinheiro (R$), dinheiro do banco e o tipo de conta (Normal/VIP).
O sistema й simples mas me enrolei todo, nгo uso muito os TextDraws (:
O sistema de conta VIP nгo foi terminado, por isso, o tipo de conta й sу Normal! (Pode editar no seu gamemode, sу adaptar)

Imagem:

Lembrando, que estб feito para GofFahters/Thug Life's!

Topo do gamemode:
pawn Код:
new Text:jInfo1;
new Text:jInfo2;
new Text:jInfo3;
new bool:Conectado = false;
forward jInformacoes(playerid, targetid);
OnPlayerConnect:
pawn Код:
jInfo1 = TextDrawCreate(-1.000000, 420.000000, " ~b~Brasil ~w~Player ~b~Conspired ~w~[~b~RP~w~]");    
jInfo2 = TextDrawCreate(-1.000000, 429.000000, "_");    
jInfo3 = TextDrawCreate(-1.000000, 438.000000, "_");

TextDrawBackgroundColor(jInfo1, 0x000000ff);                
TextDrawBackgroundColor(jInfo2, 0x000000ff);              
TextDrawBackgroundColor(jInfo3, 0x000000ff);
TextDrawFont(jInfo1, 1);                      
TextDrawFont(jInfo2, 1);                        
TextDrawFont(jInfo3, 1);
TextDrawLetterSize(jInfo1, 0.299999,1.100000);    
TextDrawLetterSize(jInfo2, 0.299999,1.100000);    
TextDrawLetterSize(jInfo3, 0.299999,1.100000);
TextDrawSetOutline(jInfo1, 1);    
TextDrawSetOutline(jInfo2, 1);    
TextDrawSetOutline(jInfo3, 1);
TextDrawSetProportional(jInfo1, 1);    
TextDrawSetProportional(jInfo2, 1);    
TextDrawSetProportional(jInfo3, 1);
OnPlayerDisconnect:
pawn Код:
TextDrawDestroy(jInfo1);    
TextDrawDestroy(jInfo2);    
TextDrawDestroy(jInfo3);
OnPlayerSpawn:
pawn Код:
SetTimer("jInformacoes", 500, true);
Public:
pawn Код:
public jInformacoes(playerid, targetid)
{
   if(Conectado == false)
   {
      new sStrDD[256], sStrDDD[256];
      new level = PlayerInfo[targetid][pLevel];
      new exp = PlayerInfo[targetid][pExp];    
      new nxtlevel = PlayerInfo[targetid][pLevel]+1;
      new expamount = nxtlevel*levelexp;
      new account = PlayerInfo[targetid][pAccount];  
      format(sStrDD, sizeof(sStrDD), " ~y~Level: ~w~%d  ~p~Respeito: ~w~%d/%d", level, exp, expamount);    
      format(sStrDDD, sizeof(sStrDDD), " ~r~R$: ~w~%d  ~b~Banco ~w~%d  ~p~Conta: ~w~Normal                                          ~b~www.brasilplayerconspired.net", GetPlayerGP(targetid), account);
      TextDrawSetString(jInfo2, sStrDD);    
      TextDrawSetString(jInfo3, sStrDDD);
      TextDrawShowForPlayer(playerid, jInfo1
      TextDrawShowForPlayer(playerid, jInfo2);    
      TextDrawShowForPlayer(playerid, jInfo3);
   }
   return true;    
}
Podem postar em blogs, podem retirar crйditos e podem fazer o que quiserem (:
Espero que seja util!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)