distance shot - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: distance shot (
/showthread.php?tid=621845)
distance shot -
StR_MaRy - 15.11.2016
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 ?
Re: distance shot -
SickAttack - 15.11.2016
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.