04.09.2009, 12:41
[FilterScript] [FS] Speedo 0.3
04.09.2009, 12:49
Nice
04.09.2009, 14:06
no work
04.09.2009, 14:54
Not a good position on the screen.
04.09.2009, 17:19
Quote:
Originally Posted by panther74
no work
|
Quote:
Originally Posted by [WsR
RyDeR ]
Not a good position on the screen. |
04.09.2009, 17:36
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.
You recreate olddata variable every time the function is called hence the speed actually can not be saved and then calculated.
04.09.2009, 21:05
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. |
04.09.2009, 21:14
Sweet
16.10.2009, 13:27
Thanks this really helped, but how the heck did you get the calculations ?
16.10.2009, 22:25
Quote:
Originally Posted by Pandabeer1337
Thanks this really helped, but how the heck did you get the calculations ?
|
= 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.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)