View Single Post
eyal282
Veteran Member
Join Date: Aug 2011
Old 10-07-2016 , 15:07   Re: Anti Spawn Kill
Reply With Quote #17

Quote:
Originally Posted by HamletEagle View Post
I've searched a bit and found no other plugin, so I'm okay with that. For approval:
1.In HamBurger_Spawn always check is_user_alive before doing anything.
2.In HamBurger_Damage firstly check if victim is still connected.
3.Remove client_PreThink for detecting IN_ATTACK and IN_ATTACK2 Switch to PrimaryAttack and SecondaryAttack with proper checks. If you want to be sure that player actually fired a bullet, go for FM_PlaybackEvent. But I think you are only interested if he press the button, so first way is good enough.
I also fixed a bug that allows players to shoot in the last second.
eyal282 is offline