How to increase armor or speed on a car?
#2

https://sampwiki.blast.hk/wiki/SetVehicleHealth
https://sampwiki.blast.hk/wiki/SetVehicleVelocity

Instead of the above SetVehicleVelocity function, you can use this custom one, which only requires the speed argument

pawn Код:
SetVelocityForward(vehicleid, Float:multi)
{
    new Float:angle, Float:velox, Float:veloy;
    GetVehicleZAngle(vehicleid, angle);
    velox = multi * floatsin(-angle, degrees);
    veloy = multi * floatcos(-angle, degrees);
    SetVehicleVelocity(vehicleid, velox, veloy, 0.01);
}
Reply


Messages In This Thread
How to increase armor or speed on a car? - by Zack9764 - 08.04.2010, 19:58
Re: How to increase armor or speed on a car? - by dice7 - 08.04.2010, 20:00
Re: How to increase armor or speed on a car? - by Zack9764 - 08.04.2010, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)