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

I would like to increase armor (so it takes longer to get to 0 and break down) or/and speed on a specific vehicle. How can I do this? Or is this even possible?
Reply
#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
#3

oh sweet thanks man!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)