Killerid registration OnVehicleDeath
#7

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
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.
I love the way your thinking

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:
Originally Posted by Rizard
Посмотреть сообщение
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,...)
Reply


Messages In This Thread
Killerid registration OnVehicleDeath - by Rizard - 23.05.2011, 12:51
Re: Killerid registration OnVehicleDeath - by Mauzen - 23.05.2011, 16:26
Re: Killerid registration OnVehicleDeath - by Rizard - 24.05.2011, 11:51
Re: Killerid registration OnVehicleDeath - by Sasino97 - 24.05.2011, 11:55
Re: Killerid registration OnVehicleDeath - by Rizard - 24.05.2011, 11:58
Re: Killerid registration OnVehicleDeath - by Mauzen - 24.05.2011, 11:59
Re: Killerid registration OnVehicleDeath - by Rizard - 24.05.2011, 12:05
Re: Killerid registration OnVehicleDeath - by Mauzen - 24.05.2011, 12:21
Re: Killerid registration OnVehicleDeath - by Rizard - 24.05.2011, 14:11
Re: Killerid registration OnVehicleDeath - by Rizard - 24.05.2011, 14:47

Forum Jump:


Users browsing this thread: 1 Guest(s)