SA-MP Forums Archive
Scripting 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: Scripting help (/showthread.php?tid=529401)



Scripting help - LarryTiger - 02.08.2014

Hello anyone can teach me how to make a simple text from the top of right? From the screen of GTA,?


Re: Scripting help - dirigent00 - 02.08.2014

Do you mean on Textdraws or what? If Textdraws, use Ipleomax or Zamaroth TextDraw Editor to create them, set their position, color, etc. Then in your script use TextDrawShowForPlayer to show them.


Re: Scripting help - LarryTiger - 02.08.2014

Can you make it for me? Make a King Generation? From the top right of the screen


Re: Scripting help - dirigent00 - 02.08.2014

On top of script:
Код:
new Text:Textdraw0;
Under OnGameModeInit:
Код:
Textdraw0 = TextDrawCreate(583.999816, 8.213335, "King~n~Generation");
TextDrawLetterSize(Textdraw0, 0.379999, 1.497066);
TextDrawAlignment(Textdraw0, 2);
TextDrawColor(Textdraw0, -5963521);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 1);
TextDrawBackgroundColor(Textdraw0, 51);
TextDrawFont(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
Under OnPlayerConnect:
Код:
TextDrawShowForPlayer(playerid, Textdraw0);
Next time do it for yourself, because you'll never learn if someone else make it for you. But always feel free to ask for help.