vehicle/playerdeath reason
#1

hi,

when there are 2 players in 2 vehicles and they do drive bys and one of the vehicle eplodes,
then it will notice the player death as a suicide.
How can i make it like it will not be shown as suicide but as the player got killed by the other player (drive byer)?

It is possible, i saw it on some servers but i have no idea how to do that, please help

Can i use new 0.3z callback somehow (OnplayerShot)?

I hope u can help me and give me some ideas on how to do that...


thanks :P
Reply
#2

anyone?
Reply
#3

pls i really need this
Reply
#4

Try to use the OnVehicleDeath callback instead of OnPlayerDeath.
When the vehicle gets destroyed, loop through all players to see who's inside this vehicle.
The killerid of the vehicle would be who killed it's passengers as well.
Reply
#5

mhh, thanks didnt tihnk about that!

I didnt know this was possible, as the player is already dead when the vehicle gets destroyed?
Could you please provide a little piece of code to show me how you would do it. (only the sctructure, no need to post finished code)

As im still unsure how to get the killerid...
Reply
#6

bump
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)