01.10.2013, 00:29
Returns speed in km/h
pawn Код:
stock(GetVehicleVelocity, &Float:vel)
{
new Float:vx, Float:vy, Float:vz;
vel = GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz);
vel = (floatsqroot(((vx*vx)+(vy*vy))+(vz*vz))* 181.5);
}