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 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.

