14.01.2012, 22:20
I use this and it works great
Edit: Saw your last post, this just reutrn the KMH though..
pawn Код:
stock GetVehicleSpeed(vehicleid)
{
new Float:xPos[3]:
GetVehicleVelocity(vehicleid, xPos[0], xPos[1], xPos[2]);
return floatround(floatsqroot(xPos[0] * xPos[0] + xPos[1] * xPos[1] + xPos[2] * xPos[2]) * 170.00);
}