Vehicle speed
#3

I use this and it works great
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);
}
Edit: Saw your last post, this just reutrn the KMH though..
Reply


Messages In This Thread
Vehicle speed - by Scenario - 14.01.2012, 22:18
Re: Vehicle speed - by Jakku - 14.01.2012, 22:20
Re: Vehicle speed - by Laronic - 14.01.2012, 22:20
Re: Vehicle speed - by Steven82 - 14.01.2012, 22:21
Re: Vehicle speed - by Scenario - 14.01.2012, 22:21
Re: Vehicle speed - by iTorran - 14.01.2012, 22:36
Re: Vehicle speed - by Virtual1ty - 14.01.2012, 22:40
Re: Vehicle speed - by Scenario - 14.01.2012, 23:21

Forum Jump:


Users browsing this thread: 1 Guest(s)