Killerid registration OnVehicleDeath
#6

Quote:
Originally Posted by [GF]Sasino97
Посмотреть сообщение
Look in a_samp:

pawn Код:
forward OnVehicleDeath(vehicleid, killerid);
There's already a "killerid" argument! (This is my a_samp. I don't know if yours have this too)
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.
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: 3 Guest(s)