24.05.2011, 12:05
Quote:
And this one always is 255 in his case, as he said twice
![]() Hm thats difficult then, you could use GetVehicleRotationQuat for the all vehicles in a loop, convert it to degrees, and check if it is facing at the killed vehicle, like a IsPlayerAimingAt function for vehicles. Not an easy solution, but if you also check if the fire key is pressed, you can be 99,9% sure it really is the killer. |

Won't there just be an issue when let's say; 'Rustler fires upon other rustler until black smoke rises, then the attacking rustler flies of (flees the 'crime-scene') since he knows the vehicle (his victim rustler) will be death in seconds. Then when onvehicledeath is called the attacker is long gone and chances are he is no longer firing.
PS: posted yesterday in suggestions for future sa-mp versions
Quote:
If possible:
OnPlayerDamageVehicle(playerid,vehicleid); //registration, when on foot OR when using a vehicle (rustler,tank,hydra,...) to create damage! OnPlayerDestroyVehicle(playerid,vehicleid); //registration, even when the killer is in a weaponized vehicle (tank,hydra,hunter,rustler,seasparrow,...) |