[Pedido] Tela de login
#1

Boa noite , preciso de uma ajudinha aqui gostava de tirar isso mas nгo sei como fazer alguem me ajuda ?

Codigo:
#if defined IntroTextUser
stock LoadPlayerIntroText(playerid)
{
TEXTRAND[playerid] = random(sizeof IMAGESTEXT);
Intro[playerid][0] = CreatePlayerTextDraw(playerid, IMAGESTEXT[TEXTRAND[playerid]][textX], IMAGESTEXT[TEXTRAND[playerid]][textY], IMAGESTEXT[TEXTRAND[playerid]][loadimage]);
PlayerTextDrawBackgroundColor(playerid, Intro[playerid][0], 255);
PlayerTextDrawFont(playerid, Intro[playerid][0], 4);
PlayerTextDrawLetterSize(playerid, Intro[playerid][0], 0.500000, 1.000000);
PlayerTextDrawColor(playerid, Intro[playerid][0], -1);
PlayerTextDrawSetOutline(playerid, Intro[playerid][0], 0);
PlayerTextDrawSetProportional(playerid, Intro[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, Intro[playerid][0], 1);
PlayerTextDrawUseBox(playerid, Intro[playerid][0], 1);
PlayerTextDrawBoxColor(playerid, Intro[playerid][0], 255);
PlayerTextDrawTextSize(playerid, Intro[playerid][0], 645.000000, 450.000000);

Intro[playerid][1] = CreatePlayerTextDraw(playerid, 170.000000, 190.000000, "Aguarde....");
PlayerTextDrawFont(playerid, Intro[playerid][1], 2);
PlayerTextDrawLetterSize(playerid, Intro[playerid][1], 0.570000, 1.799999);

Intro[playerid][2] = CreatePlayerTextDraw(playerid, 300.000000, 190.000000, ".");
PlayerTextDrawFont(playerid, Intro[playerid][2], 2);
PlayerTextDrawColor(playerid, Intro[playerid][2], 0xFFFFFF22);
PlayerTextDrawLetterSize(playerid, Intro[playerid][2], 0.570000, 1.799999);

Intro[playerid][3] = CreatePlayerTextDraw(playerid, 300.000000, 190.000000, "..");
PlayerTextDrawFont(playerid, Intro[playerid][3], 2);
PlayerTextDrawColor(playerid, Intro[playerid][3], 0xFFFFFF44);
PlayerTextDrawLetterSize(playerid, Intro[playerid][3], 0.570000, 1.799999);

Intro[playerid][4] = CreatePlayerTextDraw(playerid, 300.000000, 190.000000, "...");
PlayerTextDrawFont(playerid, Intro[playerid][4], 2);
PlayerTextDrawColor(playerid, Intro[playerid][4], 0xFFFFFF66);
PlayerTextDrawLetterSize(playerid, Intro[playerid][4], 0.570000, 1.799999);

Intro[playerid][5] = CreatePlayerTextDraw(playerid, 300.000000, 190.000000, "....");
PlayerTextDrawFont(playerid, Intro[playerid][5], 2);
PlayerTextDrawColor(playerid, Intro[playerid][5], 0xFFFFFF8;
PlayerTextDrawLetterSize(playerid, Intro[playerid][5], 0.570000, 1.799999);

Intro[playerid][6] = CreatePlayerTextDraw(playerid, 300.000000, 190.000000, ".....");
PlayerTextDrawFont(playerid, Intro[playerid][6], 2);
PlayerTextDrawColor(playerid, Intro[playerid][6], 0xFFFFFFAA);
PlayerTextDrawLetterSize(playerid, Intro[playerid][6], 0.570000, 1.799999);

Intro[playerid][7] = CreatePlayerTextDraw(playerid, 300.000000, 190.000000, "......");
PlayerTextDrawFont(playerid, Intro[playerid][7], 2);
PlayerTextDrawColor(playerid, Intro[playerid][7], 0xFFFFFFCC);
PlayerTextDrawLetterSize(playerid, Intro[playerid][7], 0.570000, 1.799999);

Intro[playerid][8] = CreatePlayerTextDraw(playerid, 300.000000, 190.000000, ".......");
PlayerTextDrawFont(playerid, Intro[playerid][8], 2);
PlayerTextDrawColor(playerid, Intro[playerid][8], 0xFFFFFFFF);
PlayerTextDrawLetterSize(playerid, Intro[playerid][8], 0.570000, 1.799999);

Intro[playerid][9] = CreatePlayerTextDraw(playerid, 190.0, 202.0, ".");
PlayerTextDrawFont(playerid, Intro[playerid][9], 1);
PlayerTextDrawLetterSize(playerid, Intro[playerid][9], 23.250051, 1.099999);

Intro[playerid][10] = CreatePlayerTextDraw(playerid, 300.00, 223.0, "~r~Unyk Life City [ULF]");
PlayerTextDrawFont(playerid, Intro[playerid][10], 2);
PlayerTextDrawLetterSize(playerid, Intro[playerid][10], 0.340000, 1.099999);

Intro[playerid][11] = CreatePlayerTextDraw(playerid, 330.0, 235.0, "~g~Bem vindo / Divirta-se");
PlayerTextDrawFont(playerid, Intro[playerid][11], 2);
PlayerTextDrawLetterSize(playerid, Intro[playerid][11], 0.340000, 1.099999);
return 1;
}
#endif


Queria remover as imagens e ter um login instвntaneo ou seja ao entrar no server e aparecer logo a tela de login
Alguem me ajuda?
Reply
#2

Nгo compilei ver ai e posta codigos em php [php] codigo aqui [*/php] Tira o * que ficar igual esse de baixo...

PHP код:
 #if defined IntroTextUser
stock LoadPlayerIntroText(playerid)
{
Intro[playerid][0] = CreatePlayerTextDraw(playerid);
PlayerTextDrawBackgroundColor(playeridIntro[playerid][0], 255);
PlayerTextDrawFont(playeridIntro[playerid][0], 4);
PlayerTextDrawLetterSize(playeridIntro[playerid][0], 0.5000001.000000);
PlayerTextDrawColor(playeridIntro[playerid][0], -1);
PlayerTextDrawSetOutline(playeridIntro[playerid][0], 0);
PlayerTextDrawSetProportional(playeridIntro[playerid][0], 1);
PlayerTextDrawSetShadow(playeridIntro[playerid][0], 1);
PlayerTextDrawUseBox(playeridIntro[playerid][0], 1);
PlayerTextDrawBoxColor(playeridIntro[playerid][0], 255);
PlayerTextDrawTextSize(playeridIntro[playerid][0], 645.000000450.000000);
Intro[playerid][1] = CreatePlayerTextDraw(playerid170.000000190.000000"Aguarde....");
PlayerTextDrawFont(playeridIntro[playerid][1], 2);
PlayerTextDrawLetterSize(playeridIntro[playerid][1], 0.5700001.799999);
Intro[playerid][2] = CreatePlayerTextDraw(playerid300.000000190.000000".");
PlayerTextDrawFont(playeridIntro[playerid][2], 2);
PlayerTextDrawColor(playeridIntro[playerid][2], 0xFFFFFF22);
PlayerTextDrawLetterSize(playeridIntro[playerid][2], 0.5700001.799999);
Intro[playerid][3] = CreatePlayerTextDraw(playerid300.000000190.000000"..");
PlayerTextDrawFont(playeridIntro[playerid][3], 2);
PlayerTextDrawColor(playeridIntro[playerid][3], 0xFFFFFF44);
PlayerTextDrawLetterSize(playeridIntro[playerid][3], 0.5700001.799999);
Intro[playerid][4] = CreatePlayerTextDraw(playerid300.000000190.000000"...");
PlayerTextDrawFont(playeridIntro[playerid][4], 2);
PlayerTextDrawColor(playeridIntro[playerid][4], 0xFFFFFF66);
PlayerTextDrawLetterSize(playeridIntro[playerid][4], 0.5700001.799999);
Intro[playerid][5] = CreatePlayerTextDraw(playerid300.000000190.000000"....");
PlayerTextDrawFont(playeridIntro[playerid][5], 2);
PlayerTextDrawColor(playeridIntro[playerid][5], 0xFFFFFF8;
PlayerTextDrawLetterSize(playeridIntro[playerid][5], 0.5700001.799999);
Intro[playerid][6] = CreatePlayerTextDraw(playerid300.000000190.000000".....");
PlayerTextDrawFont(playeridIntro[playerid][6], 2);
PlayerTextDrawColor(playeridIntro[playerid][6], 0xFFFFFFAA);
PlayerTextDrawLetterSize(playeridIntro[playerid][6], 0.5700001.799999);
Intro[playerid][7] = CreatePlayerTextDraw(playerid300.000000190.000000"......");
PlayerTextDrawFont(playeridIntro[playerid][7], 2);
PlayerTextDrawColor(playeridIntro[playerid][7], 0xFFFFFFCC);
PlayerTextDrawLetterSize(playeridIntro[playerid][7], 0.5700001.799999);
Intro[playerid][8] = CreatePlayerTextDraw(playerid300.000000190.000000".......");
PlayerTextDrawFont(playeridIntro[playerid][8], 2);
PlayerTextDrawColor(playeridIntro[playerid][8], 0xFFFFFFFF);
PlayerTextDrawLetterSize(playeridIntro[playerid][8], 0.5700001.799999);
Intro[playerid][9] = CreatePlayerTextDraw(playerid190.0202.0".");
PlayerTextDrawFont(playeridIntro[playerid][9], 1);
PlayerTextDrawLetterSize(playeridIntro[playerid][9], 23.2500511.099999);
Intro[playerid][10] = CreatePlayerTextDraw(playerid300.00223.0"~r~Unyk Life City [ULF]");
PlayerTextDrawFont(playeridIntro[playerid][10], 2);
PlayerTextDrawLetterSize(playeridIntro[playerid][10], 0.3400001.099999);
Intro[playerid][11] = CreatePlayerTextDraw(playerid330.0235.0"~g~Bem vindo / Divirta-se");
PlayerTextDrawFont(playeridIntro[playerid][11], 2);
PlayerTextDrawLetterSize(playeridIntro[playerid][11], 0.3400001.099999);
return 
1;
}
#endif 
Reply
#3

O objetivo era tirar esse aguarde em vez de esperar para ir para a tela de login E ao entrar no server ir logo para a tela de login , mais vlw por tentar e sim pus isso no gm e compilou sem erros / warnings
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)