SA-MP Forums Archive
'Time Left' textdraw - 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: 'Time Left' textdraw (/showthread.php?tid=315337)



'Time Left' textdraw - nuriel8833 - 02.02.2012

Hello all
Since my SA:MP dont work,I cant make a ingame textdraw.And I dont know how to make one without the game,since its very difficult.
But please can someone help me make/find a textdraw of 'Time left: X' like in this video (3:00)
[ame]http://www.youtube.com/watch?v=JHCCQlXRItU[/ame]

Please thats very important.
Thanks Nuriel.


Re: 'Time Left' textdraw - Konstantinos - 02.02.2012

Actually, if you can make a /countdown command with timer, then I believe it's easy to replace the GameTextForAll to TextDraw.


Re: 'Time Left' textdraw - nuriel8833 - 02.02.2012

Quote:
Originally Posted by Dwane
View Post
Actually, if you can make a /countdown command with timer, then I believe it's easy to replace the GameTextForAll to TextDraw.
Thats not my problem.The coordinations of the TextDraw is my problem.


Re: 'Time Left' textdraw - Scenario - 02.02.2012

You shouldn't even be scripting if your game doesn't load! How the hell do you plan on testing your freakin' code?


Re: 'Time Left' textdraw - Konstantinos - 02.02.2012

Something like this?
pawn Code:
// On top of script:
new Text:CoutDown;

// In OnGameModeInit
CoutDown = TextDrawCreate(477 ,115 , "Time 06:00");
TextDrawFont(CoutDown , 1);
TextDrawLetterSize(CoutDown , 0.8, 5.6000000000000005);
TextDrawColor(CoutDown , 0xffffffFF);
TextDrawSetOutline(CoutDown , false);
TextDrawSetProportional(CoutDown , false);
TextDrawSetShadow(CoutDown , 1);



Re: 'Time Left' textdraw - thimo - 02.02.2012

Quote:
Originally Posted by RealCop228
View Post
You shouldn't even be scripting if your game doesn't load! How the hell do you plan on testing your freakin' code?
Lol he has the scripting spirit xD


Re: 'Time Left' textdraw - MP2 - 02.02.2012

How's this?

http://www.movieserv.net/files/clock.png

pawn Code:
Textdraw0 = TextDrawCreate(611.000000, 120.000000, "TIME     06:30");
TextDrawAlignment(Textdraw0, 3);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.440000, 1.800000);
TextDrawColor(Textdraw0, -1446714113);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);



Re: 'Time Left' textdraw - nuriel8833 - 03.02.2012

Quote:
Originally Posted by MP2
View Post
How's this?

http://www.movieserv.net/files/clock.png

pawn Code:
Textdraw0 = TextDrawCreate(611.000000, 120.000000, "TIME     06:30");
TextDrawAlignment(Textdraw0, 3);
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.440000, 1.800000);
TextDrawColor(Textdraw0, -1446714113);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
Yes exacly,thanks a lot!
+rep
(edit: I have already given you reputation yesterday,I can't give you again now,so so sorry )
------------------------

Quote:
Originally Posted by RealCop228
View Post
You shouldn't even be scripting if your game doesn't load! How the hell do you plan on testing your freakin' code?
Well testing currectly is frozen.But if I need ingamr coordinations I use MTA and mod s0b...