[Ajuda] TextDraw
#1

Tenho duas textdraws como uma TD qualquer, porйm elas estгo aparecendo na tela de login gostaria de saber como colocar para elas aparecerem apуs o spawn do player..
Reply
#2

A funзгo que faz elas aparecerem й:
pawn Код:
TextDrawShowForPlayer(playerid, Text:text);
Procure a funзгo em OnPlayerConnected e copie e apague ela e coloque em OnPlayerSpawn.
Reply
#3

Nгo funcionou a TextDraw sumiu.
Reply
#4

Ts3 mudou o exemplo do MultiKill pro nome de sua textdraw?
Reply
#5

pawn Код:
//Topo
new Text:Textdraw1;
new Text:Textdraw2;

public OnGameModeInit()
{
AddStaticVehicle(451,1999.3174,-2581.4631,13.1982,0.1176,1,1);
   
Textdraw1 = TextDrawCreate(554.000000, 100.000000, "-------------------");
TextDrawAlignment(Textdraw1, 2);
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 2);
TextDrawLetterSize(Textdraw1, 0.200000, 1.000000);
TextDrawColor(Textdraw1, 9109759);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);

Textdraw2 = TextDrawCreate(524.000000, 435.000000, "--------------------");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 2);
TextDrawLetterSize(Textdraw2, 0.200000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);
return 1;
}

public OnPlayerSpawn(playerid)
{
    TextDrawHideForPlayer(playerid, Textdraw1);
    TextDrawHideForPlayer(playerid, Textdraw2);
    return 1;
}
Aн estб o cуdigo.
Reply
#6

pawn Код:
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    return 1;
}
Reply
#7

funcionou *-* vlw manolo

pode me ajudar nisso tambйm?

pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128];
format(string,sizeof(string),"[%d] %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;

}
Gostaria que mostrasse o id do player desse jeito

• [ID] Nick: txt

Atualmente estб assim

Nick: [ID]

Poderia?
Reply
#8

Se eu nгo me engano nгo tem como. Mas tente:
pawn Код:
new nome[24];
GetPlayerName(playerid, nome, 24);
new string[128];
format(string,sizeof(string),"[%d] %s: %s",playerid,nome,text);
SendPlayerMessageToAll(playerid,string);
Reply
#9

MultiKill vocк pode colocar 2 new em uma linha sу, exemplo;
new nome[24],string[128];
Fica mais organizado
Reply
#10

Quote:
Originally Posted by davi54723
Посмотреть сообщение
MultiKill vocк pode colocar 2 new em uma linha sу, exemplo;
new nome[24],string[128];
Fica mais organizado
Й que eu copiei a variбvel string, format e o SendcCientMessageToAll que ele envio. Ai para ser mais rбpido, eu nгo coloquei na mesma linha.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)