[Ajuda] Como crio TexDraw no inicio do server?
#5

Primeiro crie uma new para o TextDraw:
pawn Код:
new Text: NomeServerInicio;
Depois coloque as configuraзхes dessa TextDraw (cor da letra, tamanho, sombra, etc..) no OnGameModeInit:
pawn Код:
NomeServerInicio = TextDrawCreate(316.5, 200.5, "NOME DO SEU SERVIDOR"); // Coloque aqui o nome do seu servidor
TextDrawFont(NomeServerInicio, 1);
TextDrawColor(NomeServerInicio, 0xFFFFFFFF);
TextDrawLetterSize(NomeServerInicio, 1.0, 4.0);
TextDrawSetOutline(NomeServerInicio, 1);
TextDrawSetProportional(NomeServerInicio, 1);
TextDrawAlignment(NomeServerInicio, 2);
TextDrawBackgroundColor(NomeServerInicio, 0x000000FF);
TextDrawSetShadow(NomeServerInicio, 1);
Obs.: nesse aн aparece um texto grande

Agora escolha onde o texto vai aparecer, que, no seu caso, irб aparecer no inicio, quando conecta no servidor, atй quando ele spawnar (por exemplo, vocк pode escolher).
Entгo coloque no OnPlayerConnect:
pawn Код:
TextDrawShowForPlayer(playerid, NomeServerInicio); // Irб aparecer o TextDraw quando o player conectar
E, quando vocк quizer que o texto saia, por exemplo, quando ele spawnar, coloque no OnPlayerSpawn:
pawn Код:
TextDrawHideForPlayer(playerid, NomeServerInicio); // Irб desaparecer o TextDraw quando o player spawnar
Qualquer dъvida me fale, abraзos!
Reply


Messages In This Thread
Como crio TexDraw no inicio do server? - by yuran - 31.12.2012, 06:57
Re: Como crio TexDraw no inicio do server? - by mau.tito - 31.12.2012, 09:43
Re: Como crio TexDraw no inicio do server? - by Kuddy - 31.12.2012, 09:49
Re: Como crio TexDraw no inicio do server? - by leigorm - 01.01.2013, 15:06
Re: Como crio TexDraw no inicio do server? - by Galhardo - 01.01.2013, 15:13

Forum Jump:


Users browsing this thread: 1 Guest(s)