Killerid registration OnVehicleDeath
#1

So,

Been working on something that involves killing vehicles from inside vehicles (duh... airplanes).
Now I've noticed the default 'killerid' value in OnVehicleDeath and I tought; Yes, that's it, perfect! Until I started testing and killerid always returns 255. -.- (So I get it, this might be logical since gta sa(-mp) can't detect this .. ?)

BUT
I'm not willing to surrender! If anyone can come up with a good id of scripting this, please post it!
Own id's:
¤ GetClosestPlayer() with hp > 0 (ofcourse NOT 100% bug proof, since someone can fly-by and it will register a wrong id)
¤ The above combinated with key registration? wich player fired in the past seconds (but again not 100% bug proof)

Anyone with a better idea?

PS: yes, maybe this belongs in the script request thread or in sa-mp suggestion topic but let's just discuss this please?
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: 4 Guest(s)