[SOLVED] Prevent shooting players
What I want to do is enable friendlyfire only for some players in a team.
When one player shoots another, if they both have 'enabled' variable on 1, the victim will normally take the damage. But if one of them doesn't, nothing will happen: PHP Code:
|
Re: Prevent shooting players
Code:
That should work. If not, it stills looks better than what you had. |
Re: Prevent shooting players
Your code does the exact same thing as mine (but its better :)).
|
Re: Prevent shooting players
Edited my post.
Now attempts to change the hit box. |
Re: Prevent shooting players
I have tested your code and there is no pushback/slowdown but the screen still shakes when you get hit in the head and there's still blood.
|
Re: Prevent shooting players
That's really odd, since returning HAM_SUPERCEDE should disable it completely, regardless of where you hit.
I've tested this myself in the past and it has always worked. Try hooking Ham_TraceAttack instead. |
TraceAttack works perfectly. :D
PHP Code:
|
| All times are GMT -4. The time now is 03:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.