Speed formula
#3

CyberGhost stop that fuckin cry, thanks.


pawn Код:
stock GetVehicleSpeed( vehicleid )
{
    new
        Float: Poz[ 3 ]
    ;
    GetVehicleVelocity( vehicleid, Poz[ 0 ], Poz[ 1 ], Poz[ 2 ] );
    return floatround( floatsqroot( Poz[ 0 ] * Poz[ 0 ] + Poz[ 1 ] * Poz[ 1 ] + Poz[ 2 ] * Poz[ 2 ] ) * 160 );
}
tested and it works
Reply


Messages In This Thread
Speed formula - by Steve M. - 23.04.2011, 23:33
Re: Speed formula - by Laronic - 23.04.2011, 23:39
Re: Speed formula - by Gh0sT_ - 23.04.2011, 23:47
Re: Speed formula - by Steve M. - 23.04.2011, 23:51
Re: Speed formula - by Gh0sT_ - 23.04.2011, 23:53
Re: Speed formula - by Laronic - 24.04.2011, 00:18

Forum Jump:


Users browsing this thread: 1 Guest(s)