07.03.2010, 13:27
Sorry.
pawn Код:
stock Float:VehicleAngle(vehicleid)
{
new Float:Angle;
GetVehicleZAngle(vehicleid, Angle);
return Angle;
}
stock GetVehicleForwardVelocity(vehicleid, &Float:Velocity, &Float:Z)
{
new Float:SpeedX, Float:SpeedY, Float:SpeedZ;
GetVehicleVelocity(vehicleid, SpeedX, SpeedY, SpeedZ);
SpeedX *= floatsin(-VehicleAngle(vehicleid), degrees);
SpeedY *= floatcos(-VehicleAngle(vehicleid), degrees);
Velocity = floatadd(SpeedX, SpeedY);
Z = SpeedZ;
return true;
}

