25.02.2014, 14:07
for the second question, yes.
https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate
for the first one, idk, don't think so, maybe with SetPlayerVelocity or something, might be possible, but it'll probably look terrible.
https://sampwiki.blast.hk/wiki/SetPlayerVelocity
https://sampwiki.blast.hk/wiki/GetPlayerVelocity
although with a vehicle it IS possible, it'll work nice n smooth.
https://sampwiki.blast.hk/wiki/SetVehicleVelocity
https://sampwiki.blast.hk/wiki/GetVehicleVelocity
or you could use SetVehicleSpeed, or something like that( those are custom functions, ****** for them ).
https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
https://sampwiki.blast.hk/wiki/OnVehicleDamageStatusUpdate
for the first one, idk, don't think so, maybe with SetPlayerVelocity or something, might be possible, but it'll probably look terrible.
https://sampwiki.blast.hk/wiki/SetPlayerVelocity
https://sampwiki.blast.hk/wiki/GetPlayerVelocity
although with a vehicle it IS possible, it'll work nice n smooth.
https://sampwiki.blast.hk/wiki/SetVehicleVelocity
https://sampwiki.blast.hk/wiki/GetVehicleVelocity
or you could use SetVehicleSpeed, or something like that( those are custom functions, ****** for them ).