[Ajuda] Comando Para Textdraw
#1

queeria transferir esse comando para fazer tipo uma textdraw ' ajuda ai alguem

PHP код:
format(stringsizeof(string), "|__________ Informaзхes de %s __________|"getPName(id));
    
SCM(playeridCOR_BRANCO,string);
    new 
ip[24];
    new 
Float:health;
    new 
Float:armour;
    new 
ammo GetPlayerAmmo(id);
    new 
ping GetPlayerPing(id);
    new 
money GetPlayerMoney(id);
    new 
level GetPlayerScore(id);
    new 
VIP[24];
    if(
Player[id][pVIP] >= 1VIP "Sim";
    else 
VIP "Nгo";
    
GetPlayerHealth(id,health);
    
GetPlayerArmour(id,armour);
    
GetPlayerIp(idipsizeof ip);
    
format(stringsizeof(string), "IP: %s"ip);
    
SCM(playerid0xE3E3E3FF,string);
    
format(stringsizeof(string), "Level: %d"level);
    
SCM(playerid0xE3E3E3FF,string);
    
format(stringsizeof(string), "Vida: %.1f"health);
    
SCM(playerid0xE3E3E3FF,string);
    
format(stringsizeof(string), "Colete: %.1f"armour);
    
SCM(playerid0xE3E3E3FF,string);
    
format(stringsizeof(string), "Muniзгo da arma na mгo: %d"ammo);
    
SCM(playerid0xE3E3E3FF,string);
    
format(stringsizeof(string), "Ping: %d"ping);
    
SCM(playerid0xE3E3E3FF,string);
    
format(stringsizeof(string), "Dinheiro: %d"money);
    
SCM(playerid0xE3E3E3FF,string);
    
format(stringsizeof(string), "VIP? %s"VIP);
    
SCM(playerid0xE3E3E3FF,string);
    return 
1;

Reply
#2

wtf?
Criar uma textdraw com as informaзхes?
Reply
#3

siiimmm..
Reply
#4

Usa editor de textdraw e faz a textdraw e usa a funзгo:
https://sampwiki.blast.hk/wiki/PlayerTextDrawSetString
Reply
#5

Quote:
Originally Posted by IlanZ
Посмотреть сообщение
wtf?
Criar uma textdraw com as informaзхes?
tem algo contra? ele pode sim criar uma TD com o RG do player
Quote:
Originally Posted by n0minal
Посмотреть сообщение


TextDraw Font: 4
TextDraw String/Text: BIBLIOTECA:nome_do_componente
TextDraw Box: On
-> Mudar tamanho da box pra Ajustar o Sprite

Ferramenta Que eu uso pra consultar Bibliotecas e Componentes (TXD Workshop):

Vou usar esse exemplo aqui pra te mostrar como й bonito um TD, do que o Dialog ou SCM
Reply
#6

Tб pistola em BobbMarley...

Recomendo usar o iTD (iPLEOMAX Textdraw Editor) para criar as textdraws й bem simples e intuitivo.

Depois de fazer o processo de passar para o GM (de preferкncia com os nomes das textdraws diferentes do padrгo)
й sу inserir os valores que vocк deseja nas funзхes 'TextDrawSetString' fazendo uso do 'format' para isso...

Exemplo com a variбvel ip:
PHP код:
new string[20]; //Define a variбvel de texto
format(stringsizeof(string), "IP: %s"ip);
TextDrawSetString(textdrawstring); //Atribui a string definida anteriormente para a(o) textdraw
TextDrawShowForPlayer(playeridtextdraw); //Vai mostrar a(o) textdraw com a string jб atribuнda a ele para o jogador 
Acho que й mais ou menos isso...

Uma pergunta, esse sistema aн estб funcionando corretamente?

Edit: (achei estranho o uso do id e do playerid ao mesmo tempo)
Reply
#7

Quote:
Originally Posted by BobbMarley
Посмотреть сообщение
tem algo contra? ele pode sim criar uma TD com o RG do player
Tenho nada contra ele, eu so perguntei que nгo entendi realmente o que ele queria...
Reply
#8

Siim meeu Sistema estб funcionando corretamente.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)