[Ajuda] [Ajuda] :D
#1

Olб Galerinha' Preciso de Ajuda em TextDraw' Criei uma TextDraw usando o Zamaroth Text Draw Editor e queria colocar essa TextDraw para apareзer Apenas 1 Vez para Pessoas que Fossem se Registrar no Servidor TankYouu'
Reply
#2

Mostra uma TextDraw para um jogador especнfico:

https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer

Agora para deletar a Textdraw quando acabar o registro..

https://sampwiki.blast.hk/wiki/TextDrawDestroy
Reply
#3

No onplayerconnect vc coloca o TextDrawShowForPlayer depois vocк usa o settimer e coloca TextDrawDestroy.
Reply
#4

Vou testar e Ja dou@Edit
Reply
#5

C:\Users\Junior\Documents\Servidor'\Servidor [OFICIAL]\gamemodes\aa.pwn(60) : error 021: symbol already defined: "TextDrawShowForPlayer"

C:\Users\Junior\Documents\Servidor'\Servidor [OFICIAL]\gamemodes\aa.pwn(120) : warning 203: symbol is never used: "Textdraw1"
C:\Users\Junior\Documents\Servidor'\Servidor [OFICIAL]\gamemodes\aa.pwn(120) : warning 203: symbol is never used: "Textdraw2"
C:\Users\Junior\Documents\Servidor'\Servidor [OFICIAL]\gamemodes\aa.pwn(120) : warning 203: symbol is never used: "Textdraw3"
C:\Users\Junior\Documents\Servidor'\Servidor [OFICIAL]\gamemodes\aa.pwn(120) : warning 203: symbol is never used: "Textdraw4"
C:\Users\Junior\Documents\Servidor'\Servidor [OFICIAL]\gamemodes\aa.pwn(120) : warning 203: symbol is never used: "Textdraw5"
C:\Users\Junior\Documents\Servidor'\Servidor [OFICIAL]\gamemodes\aa.pwn(120) : warning 203: symbol is never used: "Textdraw6"

C:\Users\Junior\Documents\Servidor'\Servidor [OFICIAL]\gamemodes\aa.pwn(120) : warning 203: symbol is never used: "Textdraw7"
C:\Users\Junior\Documents\Servidor'\Servidor [OFICIAL]\gamemodes\aa.pwn(120) : warning 203: symbol is never used: "Textdraw9"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

Manda o cуdigo.
Reply
#7

#include <a_samp>

new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw9;

public OnFilterScriptInit()
{
print("Textdraw file generated by");
print(" Zamaroht's textdraw editor was loaded.");

// Create the textdraws:
Textdraw1 = TextDrawCreate(566.000000, 402.000000, "_");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.519999, -36.100032);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 170);
TextDrawTextSize(Textdraw1, 104.000000, 0.000000);
TextDrawSetSelectable(Textdraw1, 0);

Textdraw2 = TextDrawCreate(157.000000, 64.000000, "Bem Vindo Ao Ultimate Roleplay");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 2);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawSetSelectable(Textdraw2, 0);

Textdraw3 = TextDrawCreate(121.000000, 109.000000, "Bem Vindo Ao Ultimate ROLEPLAY, Nosso Servidor e RP");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 2);
TextDrawLetterSize(Textdraw3, 0.349999, 1.400001);
TextDrawColor(Textdraw3, -1);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
TextDrawSetSelectable(Textdraw3, 0);

Textdraw4 = TextDrawCreate(119.000000, 141.000000, "Ou Seja Tentamos Simuluar a Sua Vida Real ao Maximo");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 2);
TextDrawLetterSize(Textdraw4, 0.349999, 1.400001);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
TextDrawSetSelectable(Textdraw4, 0);

Textdraw5 = TextDrawCreate(119.000000, 141.000000, "Ou Seja Tentamos Simuluar a Sua Vida Real ao Maximo");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 2);
TextDrawLetterSize(Textdraw5, 0.349999, 1.400001);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 0);
TextDrawSetProportional(Textdraw5, 1);
TextDrawSetShadow(Textdraw5, 1);
TextDrawSetSelectable(Textdraw5, 0);

Textdraw6 = TextDrawCreate(115.000000, 178.000000, "Entao Tente Simular o Que voce Fas na Sua Vida Real Todos os Dias");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 2);
TextDrawLetterSize(Textdraw6, 0.289999, 1.400001);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);
TextDrawSetSelectable(Textdraw6, 0);

Textdraw7 = TextDrawCreate(113.000000, 219.000000, "Entao Vamos Sair Dos Cumprimentos e Ir Para a Apresentacao?");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 2);
TextDrawLetterSize(Textdraw7, 0.310000, 1.400001);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);
TextDrawSetSelectable(Textdraw7, 0);

Textdraw9 = TextDrawCreate(285.000000, 290.000000, "Let's Go");
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 2);
TextDrawLetterSize(Textdraw9, 0.569998, 3.299999);
TextDrawColor(Textdraw9, -1);
TextDrawSetOutline(Textdraw9, 0);
TextDrawSetProportional(Textdraw9, 1);
TextDrawSetShadow(Textdraw9, 1);
TextDrawSetSelectable(Textdraw9, 0);

return 1;
}

public OnFilterScriptExit()
{
TextDrawHideForAll(Textdraw1);
TextDrawDestroy(Textdraw1);
TextDrawHideForAll(Textdraw2);
TextDrawDestroy(Textdraw2);
TextDrawHideForAll(Textdraw3);
TextDrawDestroy(Textdraw3);
TextDrawHideForAll(Textdraw4);
TextDrawDestroy(Textdraw4);
TextDrawHideForAll(Textdraw5);
TextDrawDestroy(Textdraw5);
TextDrawHideForAll(Textdraw6);
TextDrawDestroy(Textdraw6);
TextDrawHideForAll(Textdraw7);
TextDrawDestroy(Textdraw7);
TextDrawHideForAll(Textdraw9);
TextDrawDestroy(Textdraw9);
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
TextDrawShowForPlayer(killerid, Textdraw1);
TextDrawShowForPlayer(killerid, Textdraw2);
TextDrawShowForPlayer(killerid, Textdraw3);
TextDrawShowForPlayer(killerid, Textdraw4);
TextDrawShowForPlayer(killerid, Textdraw5);
TextDrawShowForPlayer(killerid, Textdraw6);
TextDrawShowForPlayer(killerid, Textdraw7);
TextDrawShowForPlayer(killerid, Textdraw9);
SetTimerEx("HideMessage", 10000, 0, "i", killerid);
}

forward HideMessage(playerid);
public HideMessage(playerid)
{
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
TextDrawHideForPlayer(playerid, Textdraw7);
TextDrawHideForPlayer(playerid, Textdraw9);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)