Speedo - 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 (
/showthread.php?tid=661195)
Speedo -
m4karow - 25.11.2018
Hi
I want to re-create the speedometer from gta-mp.cz
Which character (or sprite) do you recommend for the indicator (
red on the picture) that will point to the current speed, and for the buttons (maybe ,,
- " ) that are white next to the numbers.
Re: Speedo -
m4karow - 27.11.2018
bump
Re: Speedo -
m4karow - 04.12.2018
bump again
Re: Speedo -
Kaliber - 04.12.2018
This is not an easy task.
Look for sprites and here are some threads that may help you:
https://sampforum.blast.hk/showthread.php?tid=637783
https://sampforum.blast.hk/showthread.php?tid=631446
Re: Speedo -
m4karow - 04.12.2018
I’ve done the main textdraw. I only need the indicators. When I got home I’ll upload a picture
Re: Speedo -
Kaliber - 04.12.2018
Just look at the links i've posted.
https://sampforum.blast.hk/showthread.php?pid=4069136#pid4069136
There you can see, how you can do the needle.
Re: Speedo -
m4karow - 04.12.2018
Quote:
Originally Posted by Kaliber
|
This is using the " . " character... You can see there are a lot of distance between a character. On my picture the icons are more closer than this.
Re: Speedo -
Kaliber - 04.12.2018
You don't say...
Maybe because there are more '.' and they are just closer and smaller?
But thats exactly what you wanted to have...
Re: Speedo -
m4karow - 06.12.2018
So this indicator created by a cycle and each ' . ' is a textdraw? This is wont be much for the server to re-create theese textdraws every 1 sec for each player who driving a vehicle?
Re: Speedo -
d3Pedro - 06.12.2018
Quote:
Originally Posted by m4karow
So this indicator created by a cycle and each ' . ' is a textdraw? This is wont be much for the server to re-create theese textdraws every 1 sec for each player who driving a vehicle?
|
No it's taken from pool game and they have used background box color.
Re: Speedo -
Pottus - 06.12.2018
Why not just choose a good object and use that? Requires one textdraw for the indicator.
https://sampwiki.blast.hk/wiki/TextDrawSetPreviewModel
Re: Speedo -
m4karow - 07.12.2018
Quote:
Originally Posted by Pottus
|
Nice idea
I will check how it look like ingame. Thanks anyway
Re: Speedo -
Riddick94 - 07.12.2018
Only if SA-MP had a native with textdraw rotation feature...
Re: Speedo -
g1venchy - 07.12.2018
https://sampforum.blast.hk/showthread.php?pid=3904513#pid3904513
just add black background and more dots and white texts and it should look the same
when you know how to program, then those systems are nothing special, just some system take more time then others thats the only difference
Re: Speedo -
m4karow - 08.12.2018
Quote:
Originally Posted by g1venchy
|
If I use letters the server have to calculate the coords for the textdraws about 10 times every 1 second. Thats too much if there are about 100 players in a vehicle, right?
What do you recommend?
Re: Speedo -
m4karow - 10.12.2018
bump
Re: Speedo -
Bombaci - 10.12.2018
textdraw or icon?