distance shot
#1

hey guys i want to destroy a vehicle only for 100metters or far , if the playe who shot is less than 100m he should get a message like "you are to close"

idea how ?
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerDistanceFromPoint

Use it along with the coordinates OnPlayerWeaponShot gives you. Note that 0.0 is returned if the bullet didn't hit anything.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)