Jump to content
  • 0

Cum oun Text Draw pe sv


vasy

Question

// TextDraw developed using Zamaroht's Textdraw Editor 1.0

// On top of script:
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;

// In OnGameModeInit prefferably, we procced to create our textdraws:
Textdraw0 = TextDrawCreate(648.000000, 430.000000, ".");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 0.549998, 1.100000);
TextDrawColor(Textdraw0, -16711681);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 16777215);
TextDrawTextSize(Textdraw0, -11.000000, 27.000000);

Textdraw1 = TextDrawCreate(500.000000, 94.000000, "....");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 0.549998, 1.100000);
TextDrawColor(Textdraw1, -16776961);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);

Textdraw2 = TextDrawCreate(523.000000, 94.000000, "....");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 3);
TextDrawLetterSize(Textdraw2, 0.549998, 1.100000);
TextDrawColor(Textdraw2, -65281);
TextDrawSetOutline(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);

Textdraw3 = TextDrawCreate(546.000000, 94.000000, "....");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 3);
TextDrawLetterSize(Textdraw3, 0.549998, 1.100000);
TextDrawColor(Textdraw3, 65535);
TextDrawSetOutline(Textdraw3, 1);
TextDrawSetProportional(Textdraw3, 1);

Textdraw4 = TextDrawCreate(507.000000, 103.000000, "/rules");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 3);
TextDrawLetterSize(Textdraw4, 0.439999, 1.100000);
TextDrawColor(Textdraw4, 16711935);
TextDrawSetOutline(Textdraw4, 1);
TextDrawSetProportional(Textdraw4, 1);

Textdraw5 = TextDrawCreate(499.000000, 108.000000, "....");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 3);
TextDrawLetterSize(Textdraw5, 0.519999, 1.200000);
TextDrawColor(Textdraw5, -16776961);
TextDrawSetOutline(Textdraw5, 1);
TextDrawSetProportional(Textdraw5, 1);

Textdraw6 = TextDrawCreate(521.000000, 108.000000, "....");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 3);
TextDrawLetterSize(Textdraw6, 0.519999, 1.200000);
TextDrawColor(Textdraw6, -65281);
TextDrawSetOutline(Textdraw6, 1);
TextDrawSetProportional(Textdraw6, 1);

Textdraw7 = TextDrawCreate(543.000000, 108.000000, "....");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 3);
TextDrawLetterSize(Textdraw7, 0.519999, 1.200000);
TextDrawColor(Textdraw7, 65535);
TextDrawSetOutline(Textdraw7, 1);
TextDrawSetProportional(Textdraw7, 1);

Textdraw8 = TextDrawCreate(564.000000, 93.000000, ":");
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 3);
TextDrawLetterSize(Textdraw8, 0.319999, 3.399997);
TextDrawColor(Textdraw8, 16711935);
TextDrawSetOutline(Textdraw8, 1);
TextDrawSetProportional(Textdraw8, 1);

Textdraw9 = TextDrawCreate(496.000000, 93.000000, ":");
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 3);
TextDrawLetterSize(Textdraw9, 0.319999, 3.399997);
TextDrawColor(Textdraw9, 16711935);
TextDrawSetOutline(Textdraw9, 1);
TextDrawSetProportional(Textdraw9, 1);

Textdraw10 = TextDrawCreate(429.000000, 142.000000, ".");
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 3);
TextDrawLetterSize(Textdraw10, 0.009999, 0.000000);
TextDrawColor(Textdraw10, 16711935);
TextDrawSetOutline(Textdraw10, 1);
TextDrawSetProportional(Textdraw10, 1);

// You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and
// TextDrawDestroy functions to show, hide, and destroy the textdraw.

Cum pun acest textdarw in GameMod sau stil FS

<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Pasul 1.(sus in gamemod pui):

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;

Pasul 2.(La "OnGameModeInit" pui);

Textdraw0 = TextDrawCreate(648.000000, 430.000000, ".");

TextDrawBackgroundColor(Textdraw0, 255);

TextDrawFont(Textdraw0, 3);

TextDrawLetterSize(Textdraw0, 0.549998, 1.100000);

TextDrawColor(Textdraw0, -16711681);

TextDrawSetOutline(Textdraw0, 1);

TextDrawSetProportional(Textdraw0, 1);

TextDrawUseBox(Textdraw0, 1);

TextDrawBoxColor(Textdraw0, 16777215);

TextDrawTextSize(Textdraw0, -11.000000, 27.000000);

Textdraw1 = TextDrawCreate(500.000000, 94.000000, "....");

TextDrawBackgroundColor(Textdraw1, 255);

TextDrawFont(Textdraw1, 3);

TextDrawLetterSize(Textdraw1, 0.549998, 1.100000);

TextDrawColor(Textdraw1, -16776961);

TextDrawSetOutline(Textdraw1, 1);

TextDrawSetProportional(Textdraw1, 1);

Textdraw2 = TextDrawCreate(523.000000, 94.000000, "....");

TextDrawBackgroundColor(Textdraw2, 255);

TextDrawFont(Textdraw2, 3);

TextDrawLetterSize(Textdraw2, 0.549998, 1.100000);

TextDrawColor(Textdraw2, -65281);

TextDrawSetOutline(Textdraw2, 1);

TextDrawSetProportional(Textdraw2, 1);

Textdraw3 = TextDrawCreate(546.000000, 94.000000, "....");

TextDrawBackgroundColor(Textdraw3, 255);

TextDrawFont(Textdraw3, 3);

TextDrawLetterSize(Textdraw3, 0.549998, 1.100000);

TextDrawColor(Textdraw3, 65535);

TextDrawSetOutline(Textdraw3, 1);

TextDrawSetProportional(Textdraw3, 1);

Textdraw4 = TextDrawCreate(507.000000, 103.000000, "/rules");

TextDrawBackgroundColor(Textdraw4, 255);

TextDrawFont(Textdraw4, 3);

TextDrawLetterSize(Textdraw4, 0.439999, 1.100000);

TextDrawColor(Textdraw4, 16711935);

TextDrawSetOutline(Textdraw4, 1);

TextDrawSetProportional(Textdraw4, 1);

Textdraw5 = TextDrawCreate(499.000000, 108.000000, "....");

TextDrawBackgroundColor(Textdraw5, 255);

TextDrawFont(Textdraw5, 3);

TextDrawLetterSize(Textdraw5, 0.519999, 1.200000);

TextDrawColor(Textdraw5, -16776961);

TextDrawSetOutline(Textdraw5, 1);

TextDrawSetProportional(Textdraw5, 1);

Textdraw6 = TextDrawCreate(521.000000, 108.000000, "....");

TextDrawBackgroundColor(Textdraw6, 255);

TextDrawFont(Textdraw6, 3);

TextDrawLetterSize(Textdraw6, 0.519999, 1.200000);

TextDrawColor(Textdraw6, -65281);

TextDrawSetOutline(Textdraw6, 1);

TextDrawSetProportional(Textdraw6, 1);

Textdraw7 = TextDrawCreate(543.000000, 108.000000, "....");

TextDrawBackgroundColor(Textdraw7, 255);

TextDrawFont(Textdraw7, 3);

TextDrawLetterSize(Textdraw7, 0.519999, 1.200000);

TextDrawColor(Textdraw7, 65535);

TextDrawSetOutline(Textdraw7, 1);

TextDrawSetProportional(Textdraw7, 1);

Textdraw8 = TextDrawCreate(564.000000, 93.000000, ":");

TextDrawBackgroundColor(Textdraw8, 255);

TextDrawFont(Textdraw8, 3);

TextDrawLetterSize(Textdraw8, 0.319999, 3.399997);

TextDrawColor(Textdraw8, 16711935);

TextDrawSetOutline(Textdraw8, 1);

TextDrawSetProportional(Textdraw8, 1);

Textdraw9 = TextDrawCreate(496.000000, 93.000000, ":");

TextDrawBackgroundColor(Textdraw9, 255);

TextDrawFont(Textdraw9, 3);

TextDrawLetterSize(Textdraw9, 0.319999, 3.399997);

TextDrawColor(Textdraw9, 16711935);

TextDrawSetOutline(Textdraw9, 1);

TextDrawSetProportional(Textdraw9, 1);

Textdraw10 = TextDrawCreate(429.000000, 142.000000, ".");

TextDrawBackgroundColor(Textdraw10, 255);

TextDrawFont(Textdraw10, 3);

TextDrawLetterSize(Textdraw10, 0.009999, 0.000000);

TextDrawColor(Textdraw10, 16711935);

TextDrawSetOutline(Textdraw10, 1);

TextDrawSetProportional(Textdraw10, 1);

Pasul 3.(Ca sa le apara la playeri text-drawul pui la OnPlayerConnect);

TextDrawShowForPlayer(playerid,Text:Textdraw0);

TextDrawShowForPlayer(playerid,Text:Textdraw1);

TextDrawShowForPlayer(playerid,Text:Textdraw2);

TextDrawShowForPlayer(playerid,Text:Textdraw3);

TextDrawShowForPlayer(playerid,Text:Textdraw4);

TextDrawShowForPlayer(playerid,Text:Textdraw5);

TextDrawShowForPlayer(playerid,Text:Textdraw6);

TextDrawShowForPlayer(playerid,Text:Textdraw7);

TextDrawShowForPlayer(playerid,Text:Textdraw8);

TextDrawShowForPlayer(playerid,Text:Textdraw9);

TextDrawShowForPlayer(playerid,Text:Textdraw10);

Pasul 4.(Ca sa nu se creeze bug-uri neplacute pui la OnPlayerDisconnected):

TextDrawDestroy(Textdraw0[playerid]);

TextDrawDestroy(Textdraw1[playerid]);

TextDrawDestroy(Textdraw2[playerid]);

TextDrawDestroy(Textdraw3[playerid]);

TextDrawDestroy(Textdraw4[playerid]);

TextDrawDestroy(Textdraw5[playerid]);

TextDrawDestroy(Textdraw6[playerid]);

TextDrawDestroy(Textdraw7[playerid]);

TextDrawDestroy(Textdraw8[playerid]);

TextDrawDestroy(Textdraw9[playerid]);

TextDrawDestroy(Textdraw10[playerid]);

-------------------------------------------------------------------------------------

Cam asta este,sper ca ti-am fost de ajutor.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.