Vehicle's speed quick question
#2

There is no right or wrong, just take some value, if you are bored read that topic
http://forum.sa-mp.com/showthread.ph...ighlight=speed

Try to use the native VectorSize (since 0.3z) for pythagoras
pawn Код:
stock Float: GetVehicleSpeed(vehicleid) {
    new
        Float: vX,
        Float: vY,
        Float: vZ
    ;
    if(GetVehicleVelocity(vehicleid, vX, vY, vZ)) {
        return VectorSize(vX, vY, vZ) * 180.0;
    }
    return 0.0;
}
Reply


Messages In This Thread
Vehicle's speed quick question - by Fel486 - 06.04.2015, 01:12
AW: Vehicle's speed quick question - by Nero_3D - 06.04.2015, 01:56
Re: Vehicle's speed quick question - by Fel486 - 06.04.2015, 02:32

Forum Jump:


Users browsing this thread: 1 Guest(s)