SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Bug Reports

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 11/01/2018, 07:27 PM   #1
IstuntmanI's Avatar
Join Date: Mar 2009
Location: Romania
Posts: 1,862
Reputation: 373
Default OnPlayerWeaponShot when shooting a driver/passenger

If you are on foot and you shoot a driver/passenger in a vehicle (and damaging him) OnPlayerWeaponShot will only be called with hittype = BULLET_HIT_TYPE_VEHICLE with the hitid = player's vehicleid. The vehicle isn't actually shot at all and it isn't receiving damage and the driver/passenger is actually getting damage. In the "worst case" OnPlayerWeaponShot should be called twice: once for the vehicle and once for the damaged player.

I tried to find if this was already reported, but only the one about driveby-ing without calling the callback was reported.

Last edited by IstuntmanI; 11/01/2018 at 09:07 PM.
IstuntmanI is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SA:MP Passenger shooting from car (By H) fix? Riwerry Scripting Help 16 06/05/2015 04:18 PM
How to show this for the driver and the passenger ? Drago987 Scripting Help 9 22/06/2014 02:44 AM
OnPlayerWeaponShot on DriveBy passenger Kyra Bug Reports 7 24/04/2014 04:39 PM
Help, Shooting from a car as passenger. Kenzix Scripting Help 5 18/03/2014 07:42 PM
Car take damage without a passenger/driver. Unri Scripting Help 4 26/09/2013 10:39 PM

All times are GMT. The time now is 01:03 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.