23.05.2011, 12:51
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?
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?