[Ajuda] TextDraw login Aparece rapidamente e sai.
#1

ae galera alguem pode me dizer como eu faзo para por minha textdraw login mano ja fiz de tudo estudei .Mais Sempre quando eu entro no server ela aparece rapidamente e sai velho. JA TOU ATE CANSADO DE POST
Reply
#2

Procure por TextDrawHideForPlayer e verifique.
Reply
#3

Quote:
Originally Posted by ipsLuan
Посмотреть сообщение
Procure por TextDrawHideForPlayer e verifique.
Olha isso ai pra vc ver :

Код:
public OnPlayerConnect(playerid)
{
    	//Login E Registro TextDraw
	LoginRegistro[playerid][0] = CreatePlayerTextDraw(playerid, 216.910842, 83.249961, "box");
	PlayerTextDrawLetterSize(playerid, LoginRegistro[playerid][0], 0.000000, 27.756950);
	PlayerTextDrawTextSize(playerid, LoginRegistro[playerid][0], 424.000000, 0.000000);
	PlayerTextDrawAlignment(playerid, LoginRegistro[playerid][0], 1);
	PlayerTextDrawColor(playerid, LoginRegistro[playerid][0], -1);
	PlayerTextDrawUseBox(playerid, LoginRegistro[playerid][0], 1);
	PlayerTextDrawBoxColor(playerid, LoginRegistro[playerid][0], 179);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][0], 0);
	PlayerTextDrawSetOutline(playerid, LoginRegistro[playerid][0], 0);
	PlayerTextDrawBackgroundColor(playerid, LoginRegistro[playerid][0], 255);
	PlayerTextDrawFont(playerid, LoginRegistro[playerid][0], 1);
	PlayerTextDrawSetProportional(playerid, LoginRegistro[playerid][0], 1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][0], 0);

	LoginRegistro[playerid][1] = CreatePlayerTextDraw(playerid, 216.910751, 310.749969, "box");
	PlayerTextDrawLetterSize(playerid, LoginRegistro[playerid][1], 0.000000, 2.456809);
	PlayerTextDrawTextSize(playerid, LoginRegistro[playerid][1], 313.000000, 0.000000);
	PlayerTextDrawAlignment(playerid, LoginRegistro[playerid][1], 1);
	PlayerTextDrawColor(playerid, LoginRegistro[playerid][1], -1);
	PlayerTextDrawUseBox(playerid, LoginRegistro[playerid][1], 1);
	PlayerTextDrawBoxColor(playerid, LoginRegistro[playerid][1], -175);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][1], 0);
	PlayerTextDrawSetOutline(playerid, LoginRegistro[playerid][1], 0);
	PlayerTextDrawBackgroundColor(playerid, LoginRegistro[playerid][1], 255);
	PlayerTextDrawFont(playerid, LoginRegistro[playerid][1], 1);
	PlayerTextDrawSetProportional(playerid, LoginRegistro[playerid][1], 1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][1], 0);

	LoginRegistro[playerid][2] = CreatePlayerTextDraw(playerid, 331.698699, 310.749969, "box");
	PlayerTextDrawLetterSize(playerid, LoginRegistro[playerid][2], 0.000000, 2.456809);
	PlayerTextDrawTextSize(playerid, LoginRegistro[playerid][2], 424.000000, 0.000000);
	PlayerTextDrawAlignment(playerid, LoginRegistro[playerid][2], 1);
	PlayerTextDrawColor(playerid, LoginRegistro[playerid][2], -1);
	PlayerTextDrawUseBox(playerid, LoginRegistro[playerid][2], 1);
	PlayerTextDrawBoxColor(playerid, LoginRegistro[playerid][2], -175);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][2], 0);
	PlayerTextDrawSetOutline(playerid, LoginRegistro[playerid][2], 0);
	PlayerTextDrawBackgroundColor(playerid, LoginRegistro[playerid][2], 255);
	PlayerTextDrawFont(playerid, LoginRegistro[playerid][2], 1);
	PlayerTextDrawSetProportional(playerid, LoginRegistro[playerid][2], 1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][2], 0);

	LoginRegistro[playerid][3] = CreatePlayerTextDraw(playerid, 243.616348, 312.500000, "LOGAR");
	PlayerTextDrawLetterSize(playerid, LoginRegistro[playerid][3], 0.400000, 1.600000);
	PlayerTextDrawAlignment(playerid, LoginRegistro[playerid][3], 1);
	PlayerTextDrawColor(playerid, LoginRegistro[playerid][3], -1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][3], 0);
	PlayerTextDrawSetOutline(playerid, LoginRegistro[playerid][3], 0);
	PlayerTextDrawBackgroundColor(playerid, LoginRegistro[playerid][3], 255);
	PlayerTextDrawFont(playerid, LoginRegistro[playerid][3], 3);
	PlayerTextDrawSetProportional(playerid, LoginRegistro[playerid][3], 1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][3], 0);
	PlayerTextDrawSetSelectable(playerid, LoginRegistro[playerid][3], true);

	LoginRegistro[playerid][4] = CreatePlayerTextDraw(playerid, 216.910751, 152.083236, "box");
	PlayerTextDrawLetterSize(playerid, LoginRegistro[playerid][4], 0.000000, 12.717422);
	PlayerTextDrawTextSize(playerid, LoginRegistro[playerid][4], 423.000000, 0.000000);
	PlayerTextDrawAlignment(playerid, LoginRegistro[playerid][4], 1);
	PlayerTextDrawColor(playerid, LoginRegistro[playerid][4], -1);
	PlayerTextDrawUseBox(playerid, LoginRegistro[playerid][4], 1);
	PlayerTextDrawBoxColor(playerid, LoginRegistro[playerid][4], 65326);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][4], 0);
	PlayerTextDrawSetOutline(playerid, LoginRegistro[playerid][4], 0);
	PlayerTextDrawBackgroundColor(playerid, LoginRegistro[playerid][4], 255);
	PlayerTextDrawFont(playerid, LoginRegistro[playerid][4], 1);
	PlayerTextDrawSetProportional(playerid, LoginRegistro[playerid][4], 1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][4], 0);

	LoginRegistro[playerid][5] = CreatePlayerTextDraw(playerid, 346.222534, 313.083343, "REGISTRAR");
	PlayerTextDrawLetterSize(playerid, LoginRegistro[playerid][5], 0.400000, 1.600000);
	PlayerTextDrawAlignment(playerid, LoginRegistro[playerid][5], 1);
	PlayerTextDrawColor(playerid, LoginRegistro[playerid][5], -1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][5], 0);
	PlayerTextDrawSetOutline(playerid, LoginRegistro[playerid][5], 0);
	PlayerTextDrawBackgroundColor(playerid, LoginRegistro[playerid][5], 255);
	PlayerTextDrawFont(playerid, LoginRegistro[playerid][5], 3);
	PlayerTextDrawSetProportional(playerid, LoginRegistro[playerid][5], 1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][5], 0);
	PlayerTextDrawSetSelectable(playerid, LoginRegistro[playerid][5], true);

	LoginRegistro[playerid][6] = CreatePlayerTextDraw(playerid, 216.910659, 86.749961, "box");
	PlayerTextDrawLetterSize(playerid, LoginRegistro[playerid][6], 0.000000, 27.382133);
	PlayerTextDrawTextSize(playerid, LoginRegistro[playerid][6], 423.000000, 0.000000);
	PlayerTextDrawAlignment(playerid, LoginRegistro[playerid][6], 1);
	PlayerTextDrawColor(playerid, LoginRegistro[playerid][6], 65535);
	PlayerTextDrawUseBox(playerid, LoginRegistro[playerid][6], 1);
	PlayerTextDrawBoxColor(playerid, LoginRegistro[playerid][6], 65304);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][6], 0);
	PlayerTextDrawSetOutline(playerid, LoginRegistro[playerid][6], 0);
	PlayerTextDrawBackgroundColor(playerid, LoginRegistro[playerid][6], 255);
	PlayerTextDrawFont(playerid, LoginRegistro[playerid][6], 3);
	PlayerTextDrawSetProportional(playerid, LoginRegistro[playerid][6], 1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][6], 0);

	LoginRegistro[playerid][7] = CreatePlayerTextDraw(playerid, 225.812515, 86.750022, "BRASIL MEGA SAMP - RPG");
	PlayerTextDrawLetterSize(playerid, LoginRegistro[playerid][7], 0.484333, 2.183335);
	PlayerTextDrawAlignment(playerid, LoginRegistro[playerid][7], 1);
	PlayerTextDrawColor(playerid, LoginRegistro[playerid][7], -1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][7], 2);
	PlayerTextDrawSetOutline(playerid, LoginRegistro[playerid][7], 0);
	PlayerTextDrawBackgroundColor(playerid, LoginRegistro[playerid][7], 255);
	PlayerTextDrawFont(playerid, LoginRegistro[playerid][7], 3);
	PlayerTextDrawSetProportional(playerid, LoginRegistro[playerid][7], 1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][7], 2);

	LoginRegistro[playerid][8] = CreatePlayerTextDraw(playerid, 217.847518, 83.833274, "box");
	PlayerTextDrawLetterSize(playerid, LoginRegistro[playerid][8], 0.000000, 3.721817);
	PlayerTextDrawTextSize(playerid, LoginRegistro[playerid][8], 422.000000, 0.000000);
	PlayerTextDrawAlignment(playerid, LoginRegistro[playerid][8], 1);
	PlayerTextDrawColor(playerid, LoginRegistro[playerid][8], -1);
	PlayerTextDrawUseBox(playerid, LoginRegistro[playerid][8], 1);
	PlayerTextDrawBoxColor(playerid, LoginRegistro[playerid][8], 182);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][8], 0);
	PlayerTextDrawSetOutline(playerid, LoginRegistro[playerid][8], 0);
	PlayerTextDrawBackgroundColor(playerid, LoginRegistro[playerid][8], 255);
	PlayerTextDrawFont(playerid, LoginRegistro[playerid][8], 1);
	PlayerTextDrawSetProportional(playerid, LoginRegistro[playerid][8], 1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][8], 0);

	LoginRegistro[playerid][9] = CreatePlayerTextDraw(playerid, 225.812515, 86.750022, "BRASIL MEGA SAMP - RPG");
	PlayerTextDrawLetterSize(playerid, LoginRegistro[playerid][9], 0.484333, 2.183335);
	PlayerTextDrawAlignment(playerid, LoginRegistro[playerid][9], 1);
	PlayerTextDrawColor(playerid, LoginRegistro[playerid][9], -1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][9], 2);
	PlayerTextDrawSetOutline(playerid, LoginRegistro[playerid][9], 0);
	PlayerTextDrawBackgroundColor(playerid, LoginRegistro[playerid][9], 255);
	PlayerTextDrawFont(playerid, LoginRegistro[playerid][9], 3);
	PlayerTextDrawSetProportional(playerid, LoginRegistro[playerid][9], 1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][9], 2);

	LoginRegistro[playerid][10] = CreatePlayerTextDraw(playerid, 266.573669, 192.333343, "bem-vindo");
	PlayerTextDrawLetterSize(playerid, LoginRegistro[playerid][10], 0.445446, 2.323333);
	PlayerTextDrawAlignment(playerid, LoginRegistro[playerid][10], 1);
	PlayerTextDrawColor(playerid, LoginRegistro[playerid][10], -1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][10], 0);
	PlayerTextDrawSetOutline(playerid, LoginRegistro[playerid][10], 1);
	PlayerTextDrawBackgroundColor(playerid, LoginRegistro[playerid][10], 255);
	PlayerTextDrawFont(playerid, LoginRegistro[playerid][10], 2);
	PlayerTextDrawSetProportional(playerid, LoginRegistro[playerid][10], 1);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][10], 0);

	LoginRegistro[playerid][11] = CreatePlayerTextDraw(playerid, 248.770019, 218.000000, "box");
	PlayerTextDrawLetterSize(playerid, LoginRegistro[playerid][11], 0.000000, -0.260612);
	PlayerTextDrawTextSize(playerid, LoginRegistro[playerid][11], 387.000000, 0.000000);
	PlayerTextDrawAlignment(playerid, LoginRegistro[playerid][11], 1);
	PlayerTextDrawColor(playerid, LoginRegistro[playerid][11], -1);
	PlayerTextDrawUseBox(playerid, LoginRegistro[playerid][11], 1);
	PlayerTextDrawBoxColor(playerid, LoginRegistro[playerid][11], 255);
	PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][11], 0);
	PlayerTextDrawSetOutline(playerid, LoginRegistro[playerid][11], 0);
	PlayerTextDrawBackgroundColor(playerid, LoginRegistro[playerid][11], 255);
	PlayerTextDrawFont(playerid, LoginRegistro[playerid][11], 1);
	PlayerTextDrawSetProportional(playerid, LoginRegistro[playerid][11], 1);
        PlayerTextDrawSetShadow(playerid, LoginRegistro[playerid][11], 0);

    CarregarLogin(playerid);
    QuebrarRegistro(playerid);

    return 1;
}
CarregarLogin(playerid)
{
    PlayerTextDrawShow(playerid, LoginRegistro[playerid][0]);
    PlayerTextDrawShow(playerid, LoginRegistro[playerid][1]);
    PlayerTextDrawShow(playerid, LoginRegistro[playerid][2]);
    PlayerTextDrawShow(playerid, LoginRegistro[playerid][3]);
    PlayerTextDrawShow(playerid, LoginRegistro[playerid][4]);
    PlayerTextDrawShow(playerid, LoginRegistro[playerid][5]);
    PlayerTextDrawShow(playerid, LoginRegistro[playerid][6]);
    PlayerTextDrawShow(playerid, LoginRegistro[playerid][7]);
    PlayerTextDrawShow(playerid, LoginRegistro[playerid][8]);
    PlayerTextDrawShow(playerid, LoginRegistro[playerid][9]);
    PlayerTextDrawShow(playerid, LoginRegistro[playerid][10]);
    PlayerTextDrawShow(playerid, LoginRegistro[playerid][11]);
    return 1;
}
QuebrarRegistro(playerid){

    PlayerTextDrawHide(playerid, LoginRegistro[playerid][0]);
    PlayerTextDrawHide(playerid, LoginRegistro[playerid][1]);
    PlayerTextDrawHide(playerid, LoginRegistro[playerid][2]);
    PlayerTextDrawHide(playerid, LoginRegistro[playerid][3]);
    PlayerTextDrawHide(playerid, LoginRegistro[playerid][4]);
    PlayerTextDrawHide(playerid, LoginRegistro[playerid][5]);
    PlayerTextDrawHide(playerid, LoginRegistro[playerid][6]);
    PlayerTextDrawHide(playerid, LoginRegistro[playerid][7]);
    PlayerTextDrawHide(playerid, LoginRegistro[playerid][8]);
    PlayerTextDrawHide(playerid, LoginRegistro[playerid][9]);
    PlayerTextDrawHide(playerid, LoginRegistro[playerid][10]);
    PlayerTextDrawHide(playerid, LoginRegistro[playerid][11]);
    return 1 ;
}
Reply
#4

apague esse:

PHP код:
QuebrarRegistro(playerid); 
Reply
#5

Quote:
Originally Posted by GSantana
Посмотреть сообщение
apague esse:

PHP код:
QuebrarRegistro(playerid); 
ja fiz isso ai fica textdraw quando eu spawno
Reply
#6

Ai adicione na callback OnPlayerSpawn
pawn Код:
QuebrarRegistro(playerid);
Reply
#7

Quote:
Originally Posted by Ermanhaut
Посмотреть сообщение
Ai adicione na callback OnPlayerSpawn
pawn Код:
QuebrarRegistro(playerid);
blz vou tentar aki
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)