SA-MP Forums Archive
OnPlayerWeaponShot vehicle ID 0 error. - 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: OnPlayerWeaponShot vehicle ID 0 error. (/showthread.php?tid=643229)



OnPlayerWeaponShot vehicle ID 0 error. - Swarn - 15.10.2017

If a player, above ID 0, is in a vehicle, OnPlayerWeaponShot will be called. However, if a player is ID 0, and in a vehicle, it will not be called. Any ideas?


Re: OnPlayerWeaponShot vehicle ID 0 error. - Swarn - 16.10.2017

No one?


Re: OnPlayerWeaponShot vehicle ID 0 error. - Kane - 16.10.2017

Need context. Are you shooting a player who's in the vehicle or is it the player who's shooting from the vehicle?


Re: OnPlayerWeaponShot vehicle ID 0 error. - Swarn - 16.10.2017

Shooting the player in the vehicle


Re: OnPlayerWeaponShot vehicle ID 0 error. - Kane - 16.10.2017

OnPlayerWeaponShot (BULLET_HIT_TYPE_PLAYER) doesn't work with players inside vehicles. No plausible way of going around it either.

https://sampforum.blast.hk/showthread.php?tid=635291


Re: OnPlayerWeaponShot vehicle ID 0 error. - Swarn - 16.10.2017

Ah thank you.