View Single Post
Austin
Senior Member
Join Date: Oct 2005
Old 09-14-2021 , 20:25   Re: In player_death Check for weapon_healthshot ?
Reply With Quote #4

After a LOT of messing around, Got it working.
Looks like the player drops his items BEFORE the player_death event is fired and I even saw sometimes player_death was intermixed with the items being dropped.

And when you use a shot it generates an item drop for it.

This isn't perfect since if a player drops a heathshot while still alive it will still be reported when they die but it's a bot server and they never use or drop shots unless it is on death.

I updated the original post with the working code.

thanks

Last edited by Austin; 09-14-2021 at 20:26.
Austin is offline