08.04.2010, 20:00
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
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);
}