[FilterScript] [FS] Speedo 0.3 - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Speedo 0.3 (
/showthread.php?tid=95603)
[FS] Speedo 0.3 -
smeti - 04.09.2009
One new speedometer

Link update.
Only 0.3 Compatible.
Download: v1.0
Removed link false cod in the script.

Download:v1.1

Download:v1.2

Screenshot:
Re: [FS] Speedo 0.3 -
Imran.Abbas - 04.09.2009
Nice
Re: [FS] Speedo 0.3 -
panther74 - 04.09.2009
no work
Re: [FS] Speedo 0.3 -
RyDeR` - 04.09.2009
Not a good position on the screen.
Re: [FS] Speedo 0.3 -
smeti - 04.09.2009
Quote:
Originally Posted by panther74
no work 
|
Quote:
Originally Posted by [WsR
RyDeR ]
Not a good position on the screen.
|
Speed textdraw 3D samp 0.3x :P
Re: [FS] Speedo 0.3 -
Frankylez - 04.09.2009
It won't work

You recreate olddata variable every time the function is called hence the speed actually can not be saved and then calculated.
Re: [FS] Speedo 0.3 -
smeti - 04.09.2009
Quote:
Originally Posted by Frankylez
It won't work 
You recreate olddata variable every time the function is called hence the speed actually can not be saved and then calculated.
|
Thanks. Update link.
Re: [FS] Speedo 0.3 -
spike_killa - 04.09.2009
Sweet
Re: [FS] Speedo 0.3 -
Think - 16.10.2009
Thanks this really helped, but how the heck did you get the calculations

?
Re: [FS] Speedo 0.3 -
smeti - 16.10.2009
Quote:
Originally Posted by Pandabeer1337
Thanks this really helped, but how the heck did you get the calculations  ?
|
0.2x

= floatsqroot(floatpower(X - oldposX, 2) + floatpower(Y - oldposY, 2) + floatpower(Z - oldposZ)
Saved to oldposition playerid!! new Float

ldposX[MAX_PLAYERS],...............
0.3a distance (GetVehicleVelocity(GetPlayerVehicleID(playerid),X ,Y,Z); ) ~ 0.2x distance (X - oldposX[playerid], Y - oldposY[playerid], Z - oldposZ[playerid])
0.3a client (getvehiclevelocity X) ~ 0.2.x client (X - oldposX[playerid]);
0.3a client (getvehiclevelocity Y) ~ 0.2.x client (Y - oldposY[playerid]);
0.3a client (getvehiclevelocity Z) ~ 0.2.x client (Z - oldposZ[playerid]);
https://sampwiki.blast.hk/wiki/GetVehicleVelocity
http://forum.sa-mp.com/index.php?top...#post_distance
Sorry. I do not speak well in English.