21.05.2012, 21:17
Using the following code, I was looking forward to learning how velocity works in SA:MP.
To my suprise, a higher speed does not necessarily mean a higher velocity. Can anybody explain to me how velocity works in the GTA engine?
pawn Код:
SetTimer("OneSecond", 1000, true );
forward OneSecond( playerid );
public OneSecond ( playerid )
{
new Float:X, Float:Y, Float:Z, str[128];
GetVehicleVelocity( GetPlayerVehicleID(playerid), X, Y, Z );
format(str,128,"X: %f, Y: %f, Z: %f", X, Y, Z);
return SendClientMessage( playerid, -1, str);
}