SA-MP Forums Archive
Speedo meter - 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: Speedo meter (/showthread.php?tid=347933)



Speedo meter - Stefand - 03.06.2012

Hello,

I got this now for speedometer, it works but

I want to make the time unlimited because now its a bit flicking over my screen.


pawn Код:
if(IsPlayerInAnyVehicle(i) && Player[i][Speedo] == 1)
            {
                new string[60];
                format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~ ~R~%d KM/H", GetPlayerSpeed(i, 0));
                GameTextForPlayer(i, string, 1000, 3);
            }



Re: Speedo meter - Jonny5 - 03.06.2012

use a textdraw!


Re: Speedo meter - Edward156 - 03.06.2012

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
use a textdraw!
Agreed. Using a textdraw works so much better than GameTextForPlayer.


Re: Speedo meter - Stefand - 03.06.2012

can someone give me a tutorial or a FS to create Textdraw codes or something :P


Re: Speedo meter - Edward156 - 03.06.2012

Quote:
Originally Posted by Stefand
Посмотреть сообщение
can someone give me a tutorial or a FS to create Textdraw codes or something :P
https://sampforum.blast.hk/showthread.php?tid=290640
https://sampwiki.blast.hk/wiki/TextDrawCreate