[FilterScript] [FS] Speedo 0.3
#10

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 FloatldposX[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.
Reply


Messages In This Thread
[FS] Speedo 0.3 - by smeti - 04.09.2009, 12:41
Re: [FS] Speedo 0.3 - by Imran.Abbas - 04.09.2009, 12:49
Re: [FS] Speedo 0.3 - by panther74 - 04.09.2009, 14:06
Re: [FS] Speedo 0.3 - by RyDeR` - 04.09.2009, 14:54
Re: [FS] Speedo 0.3 - by smeti - 04.09.2009, 17:19
Re: [FS] Speedo 0.3 - by Frankylez - 04.09.2009, 17:36
Re: [FS] Speedo 0.3 - by smeti - 04.09.2009, 21:05
Re: [FS] Speedo 0.3 - by spike_killa - 04.09.2009, 21:14
Re: [FS] Speedo 0.3 - by Think - 16.10.2009, 13:27
Re: [FS] Speedo 0.3 - by smeti - 16.10.2009, 22:25

Forum Jump:


Users browsing this thread: 1 Guest(s)