Why this HamHook doesn't work?
Hello,
Im trying to do a game for jailbreak, in which nemesis kills terrorist on one shot, but ham for it doesn't work. Can someone tell me what's wrong? Thanks Code:
new HamHook: hDmg; |
Re: Why this HamHook doesn't work?
I think ham must be registered in plugin_init, then disable it, when you need - enable. But I might be wrong, but I am doing this in my jailbreak, can't remember why :D
|
Re: Why this HamHook doesn't work?
Ham hooks can be registered whenever you like.
Looks like the issue is your team check - terrorist team value is 1 not 2. |
Re: Why this HamHook doesn't work?
Quote:
|
Re: Why this HamHook doesn't work?
Quote:
PHP Code:
|
Re: Why this HamHook doesn't work?
Oh well, this:
Code:
if(is_user_alive(attacker) && get_user_team(id) == 2 && get_user_weapon(attacker) == CSW_KNIFE)Code:
if(is_user_alive(attacker) && get_user_team(attacker) == 2 && get_user_weapon(attacker) == CSW_KNIFE) |
| All times are GMT -4. The time now is 21:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.