SA-MP Forums Archive
TEXTDRAW HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TEXTDRAW HELP (/showthread.php?tid=660891)



TEXTDRAW HELP - ZigGamerx - 16.11.2018

Hey guys, i created textdraw with adr1 td editor after it when i enter server so textdraw is not shown

Код:
    TDEditor_TD[0] = TextDrawCreate(566.799987, 5.573320, "test");
    TextDrawLetterSize(TDEditor_TD[0], 0.218001, 1.690000);
    TextDrawTextSize(TDEditor_TD[0], -90.248367, -2.399998);
    TextDrawAlignment(TDEditor_TD[0], 1);
    TextDrawColor(TDEditor_TD[0], -1);
    TextDrawSetShadow(TDEditor_TD[0], -101);
    TextDrawSetOutline(TDEditor_TD[0], -2);
    TextDrawBackgroundColor(TDEditor_TD[0], 255);
    TextDrawFont(TDEditor_TD[0], 2);
    TextDrawSetProportional(TDEditor_TD[0], 1);



Re: TEXTDRAW HELP - Mencent - 16.11.2018

Hello!

Do you create the textdraws in your gamemode and show it to the player?
If so show us the code.


Re: TEXTDRAW HELP - ZigGamerx - 16.11.2018

yeah i created in gamemode and code is on my first post


Re: TEXTDRAW HELP - Mencent - 16.11.2018

Where you show this textdraw to the player?


Re: TEXTDRAW HELP - ZigGamerx - 16.11.2018

OnPlayerConnect


Re: TEXTDRAW HELP - UFF - 16.11.2018

PUT
pawn Код:
TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
Under OnPlayerConnect below the textdraw code


Re: TEXTDRAW HELP - v1k1nG - 16.11.2018

Quote:
Originally Posted by UFF
Посмотреть сообщение
PUT
pawn Код:
TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
Under OnPlayerConnect below the textdraw code
That way it will create the textdraw everytime a player connects to server. I suggest you to create global textdraws only once under OnGamemodeInit() and show when needed.