SA-MP Forums Archive
Textdraw question - 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 question (/showthread.php?tid=649728)



Textdraw question - ivndosos - 14.02.2018

How do I animate a textdraw like that exactly?

https://www.youtube.com/watch?v=goJ5...ature=*********


Re: Textdraw question - youthinkyoufunny - 14.02.2018

That wasn't animated textdraw, you just do in resizing TextDraw Font and make it a timer for switching the TextDraw between TextDraw 1 and TextDraw 2 which is having different fontsize


Re: Textdraw question - ivndosos - 14.02.2018

I made this textdraw
Код:
Textdraw0 = TextDrawCreate(301.000000, 100.000000, "+");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.449999, 2.099999);
TextDrawColor(Textdraw0, 227526655);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
But I don't know how do I exactly modify it,

If you can please explain into more details on how and where to do what.


Re: Textdraw question - PepsiCola23 - 14.02.2018

you can simply make a cmd that does so or a timer,it depends.

simply use one of them ,for example

PHP код:
YCMD:textdrawcolor(playeridparams[], help)
{
    
TextDrawColor(Textdraw0, ....);
    return 
1;




Re: Textdraw question - ivndosos - 14.02.2018

I tried but It didn't work out exactly, I'm not very good with timers either. I'm trying to make the exact same Textdraw anim as on the video.


Re: Textdraw question - Mugala - 14.02.2018

you have to use 3 different textdraws with same options exempt sizes.
than you have to display these textdraws with timers (for animate)


Re: Textdraw question - ivndosos - 14.02.2018

Do I use settimer or settimer ex?


Re: Textdraw question - Mugala - 14.02.2018

Quote:
Originally Posted by ivndosos
Посмотреть сообщение
Do I use settimer or settimer ex?
you have to use SetTimerEx cuz you need params as playerid.


Re: Textdraw question - ivndosos - 14.02.2018

Okay I'll try that, I'll inform you if I encounter any problems.


Re: Textdraw question - Mugala - 14.02.2018

okay I'm waiting for u.
by the way you can create one textdraw and resize it with timers, but it must be playertextdraw.

p.s. I traced another problem which I already fixed in your past thread - http://forum.sa-mp.com/showpost.php?...7&postcount=21

EDIT: I have to go and will be back in 2/3 hrs sry