Textdraw while loging in
#1

how do i get a textdraw while im login/registering and after i have done one of them it dissapiers?
here are the textdraws

Код:
//Global Textdraws:

new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
new Text:Textdraw10;
new Text:Textdraw11;
new Text:Textdraw12;
new Text:Textdraw13;
new Text:Textdraw14;


Textdraw0 = TextDrawCreate(276.399993, 327.793334, "usebox");
TextDrawLetterSize(Textdraw0, 0.000000, 0.000000);
TextDrawTextSize(Textdraw0, 276.399993, 0.000000);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, 0);
TextDrawUseBox(Textdraw0, true);
TextDrawBoxColor(Textdraw0, 102);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 0);

Textdraw1 = TextDrawCreate(220.399993, 174.726654, "usebox");
TextDrawLetterSize(Textdraw1, 0.000000, 0.000000);
TextDrawTextSize(Textdraw1, 220.399993, 0.000000);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, 0);
TextDrawUseBox(Textdraw1, true);
TextDrawBoxColor(Textdraw1, 102);
TextDrawSetShadow(Textdraw1, 0);
TextDrawSetOutline(Textdraw1, 0);
TextDrawFont(Textdraw1, 0);

Textdraw2 = TextDrawCreate(6.399968, -5.973320, "LD_SPAC:white");
TextDrawLetterSize(Textdraw2, 0.000000, 0.000000);
TextDrawTextSize(Textdraw2, 640.000000, 16.426666);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, -5963521);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, 0);
TextDrawFont(Textdraw2, 4);

Textdraw3 = TextDrawCreate(-0.599954, 139.133331, "LD_SPAC:white");
TextDrawLetterSize(Textdraw3, 0.000000, 0.000000);
TextDrawTextSize(Textdraw3, 640.000000, 16.426666);
TextDrawAlignment(Textdraw3, 1);
TextDrawColor(Textdraw3, 16777215);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetOutline(Textdraw3, 0);
TextDrawFont(Textdraw3, 4);

Textdraw4 = TextDrawCreate(-0.399953, 288.720153, "LD_SPAC:white");
TextDrawLetterSize(Textdraw4, 0.000000, 0.000000);
TextDrawTextSize(Textdraw4, 640.000000, 16.426666);
TextDrawAlignment(Textdraw4, 1);
TextDrawColor(Textdraw4, -2147450625);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetOutline(Textdraw4, 0);
TextDrawFont(Textdraw4, 4);

Textdraw5 = TextDrawCreate(-1.799953, 430.840118, "LD_SPAC:white");
TextDrawLetterSize(Textdraw5, 0.000000, 0.000000);
TextDrawTextSize(Textdraw5, 640.000000, 16.426666);
TextDrawAlignment(Textdraw5, 1);
TextDrawColor(Textdraw5, -1061109505);
TextDrawSetShadow(Textdraw5, 0);
TextDrawSetOutline(Textdraw5, 0);
TextDrawFont(Textdraw5, 4);

Textdraw6 = TextDrawCreate(70.400039, 431.093444, "LD_SPAC:white");
TextDrawLetterSize(Textdraw6, 0.000000, 0.000000);
TextDrawTextSize(Textdraw6, 640.000000, 16.426666);
TextDrawAlignment(Textdraw6, 1);
TextDrawColor(Textdraw6, -1061109505);
TextDrawSetShadow(Textdraw6, 0);
TextDrawSetOutline(Textdraw6, 0);
TextDrawFont(Textdraw6, 4);

Textdraw7 = TextDrawCreate(460.800079, 20.160049, "to");
TextDrawLetterSize(Textdraw7, 1.736400, 10.881064);
TextDrawAlignment(Textdraw7, 1);
TextDrawColor(Textdraw7, 41215);
TextDrawSetShadow(Textdraw7, 0);
TextDrawSetOutline(Textdraw7, 1);
TextDrawBackgroundColor(Textdraw7, 51);
TextDrawFont(Textdraw7, 2);
TextDrawSetProportional(Textdraw7, 1);

Textdraw8 = TextDrawCreate(61.600093, 25.386682, "Welcome");
TextDrawLetterSize(Textdraw8, 1.776400, 10.059733);
TextDrawTextSize(Textdraw8, -177.600036, 203.840026);
TextDrawAlignment(Textdraw8, 1);
TextDrawColor(Textdraw8, -2147483393);
TextDrawSetShadow(Textdraw8, 0);
TextDrawSetOutline(Textdraw8, 1);
TextDrawBackgroundColor(Textdraw8, 51);
TextDrawFont(Textdraw8, 2);
TextDrawSetProportional(Textdraw8, 1);

Textdraw9 = TextDrawCreate(68.800003, 317.333251, "TG Freeroam");
TextDrawLetterSize(Textdraw9, 1.737200, 8.319996);
TextDrawAlignment(Textdraw9, 1);
TextDrawColor(Textdraw9, 8388863);
TextDrawSetShadow(Textdraw9, 0);
TextDrawSetOutline(Textdraw9, 1);
TextDrawBackgroundColor(Textdraw9, 51);
TextDrawFont(Textdraw9, 2);
TextDrawSetProportional(Textdraw9, 1);

Textdraw10 = TextDrawCreate(-77.400039, -6.466652, "LD_SPAC:white");
TextDrawLetterSize(Textdraw10, 0.000000, 0.000000);
TextDrawTextSize(Textdraw10, 640.000000, 16.426666);
TextDrawAlignment(Textdraw10, 1);
TextDrawColor(Textdraw10, -5963521);
TextDrawSetShadow(Textdraw10, 0);
TextDrawSetOutline(Textdraw10, 0);
TextDrawFont(Textdraw10, 4);

Textdraw11 = TextDrawCreate(244.399993, 156.806671, "usebox");
TextDrawLetterSize(Textdraw11, 0.000000, 0.000000);
TextDrawTextSize(Textdraw11, 244.399993, 0.000000);
TextDrawAlignment(Textdraw11, 1);
TextDrawColor(Textdraw11, 0);
TextDrawUseBox(Textdraw11, true);
TextDrawBoxColor(Textdraw11, 102);
TextDrawSetShadow(Textdraw11, 0);
TextDrawSetOutline(Textdraw11, 0);
TextDrawFont(Textdraw11, 0);

Textdraw12 = TextDrawCreate(206.000000, 154.566665, "usebox");
TextDrawLetterSize(Textdraw12, 0.000000, 0.000000);
TextDrawTextSize(Textdraw12, 206.000000, 0.000000);
TextDrawAlignment(Textdraw12, 1);
TextDrawColor(Textdraw12, 0);
TextDrawUseBox(Textdraw12, true);
TextDrawBoxColor(Textdraw12, 102);
TextDrawSetShadow(Textdraw12, 0);
TextDrawSetOutline(Textdraw12, 0);
TextDrawFont(Textdraw12, 0);

Textdraw13 = TextDrawCreate(198.800003, 162.033325, "usebox");
TextDrawLetterSize(Textdraw13, 0.000000, 0.000000);
TextDrawTextSize(Textdraw13, 198.800003, 0.000000);
TextDrawAlignment(Textdraw13, 1);
TextDrawColor(Textdraw13, 0);
TextDrawUseBox(Textdraw13, true);
TextDrawBoxColor(Textdraw13, 102);
TextDrawSetShadow(Textdraw13, 0);
TextDrawSetOutline(Textdraw13, 0);
TextDrawFont(Textdraw13, 0);

Textdraw14 = TextDrawCreate(641.199951, 11.953332, "usebox");
TextDrawLetterSize(Textdraw14, 0.000000, 13.787038);
TextDrawTextSize(Textdraw14, 637.199951, 0.000000);
TextDrawAlignment(Textdraw14, 1);
TextDrawColor(Textdraw14, 0);
TextDrawUseBox(Textdraw14, true);
TextDrawBoxColor(Textdraw14, 102);
TextDrawSetShadow(Textdraw14, 0);
TextDrawSetOutline(Textdraw14, 0);
TextDrawFont(Textdraw14, 0);
Reply
#2

Bump please help
Reply
#3

Don't bump your topic within 24 hours.

Also, how are we supposed to help (notice that I didn't say do for you) without any code?
Reply
#4

Quote:
Originally Posted by Dylancoolblue
Посмотреть сообщение
how do i get a textdraw while im login/registering and after i have done one of them it dissapiers?
At top of the script.

Код:
 new Text:MyTextdraw;
Under GameModeInIt. Add this callback.

Код:
MyTextdraw = TextDrawCreate(10.0, 100.0, "Your text here!");
TextDrawUseBox(MyTextdraw, 1);
Under OnPlayerConnect add this.

Код:
TextDrawShowForPlayer(playerid, MyTextdraw);
Then Under OnPlayerRequestSpawn add this

Код:
TextDrawHideForPlayer(playerid, MyTextDraw);
Thats it brother!
Reply
#5

ok the textdraw is there but iwant it gone straighy after the player has logedin/registerd and it must be gone when selecting class
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)