[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
#2

Interessante.
Parabйns porйm sendo facil de fazer. Tambйm nгo gosto muito de TextDraws
Uma coisinha, poderia me arrumar este relogio seu ai? Estou sem um e achei este bem interessante.
Parabйns pelo Script
Reply
#3

Este relуgio tem em praticamente todos os gamemodes de RPG, mas se esperar, amanhг de manhг posto o relуgio aqui
Agora nгo estou aqui com o gamemode, estou no pc de meu irmгo (:
Reply
#4

Diogo parabйns lek, mt baun, mas axo que isso ai deveria ter sido postado em "Cуdigos ъteis" mesmo porque isto nгo й pra fazer um FS, e sim para por no GM, ou adaptar para o GM.
Reply
#5

Lecal *-*
Reply
#6

Quote:
Originally Posted by [FeK]Netizen
Посмотреть сообщение
Diogo parabйns lek, mt baun, mas axo que isso ai deveria ter sido postado em "Cуdigos ъteis" mesmo porque isto nгo й pra fazer um FS, e sim para por no GM, ou adaptar para o GM.
[FeK]Netizen eu tambйm pensei nisso, mas jб tinha sido tarde demais porque jб tinha criado aqui este tуpico :/
Em relaзгo ao script, apenas o criei porque estou a estudar uns gamemodes RP's e a fazer umas alteraзхes num para um amigo meu que me pediu, e ao fazer isso achei que alguйm quisesse usar mais tarde e postei (:
Reply
#7

Lecal :]]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)