reduce speed
#2

Hey. It's very simple.
When a player shoot, check if the player shot a vehicle.
Take the velocity of the vehicle (https://sampwiki.blast.hk/wiki/GetVehicleVelocity) and reduce x & y velocity by the wanted slow. 20% of the vitesse will be 1-0.2 = 0.8 of the vehicle's velocity : SetPlayerVelocity(x * 0.8, y * 0.8, z);
Reply


Messages In This Thread
reduce speed - by GoldenLion - 05.05.2017, 19:32
Re: reduce speed - by Dayrion - 05.05.2017, 20:21
Re: reduce speed - by DRIFT_HUNTER - 05.05.2017, 20:58
Re: reduce speed - by GoldenLion - 05.05.2017, 21:22

Forum Jump:


Users browsing this thread: 1 Guest(s)