Whats Wrong I had Done :(
PHP Code:
|
Re: Whats Wrong I had Done :(
Your ||'s should be &&'s since if your attacker is connected, no further conditions are being checked. You want all to be true to advance to the next code block.
|
Re: Whats Wrong I had Done :(
Ohk, Anything wrong in get weapon id as server crash while I am killing some one.
Quote:
|
Re: Whats Wrong I had Done :(
The following might fix ur problem. Check if the attacker is actually a valid player.
PHP Code:
PHP Code:
|
Re: Whats Wrong I had Done :(
Quote:
Yeah that's because rg_get_weaponbox_id(pevAttacker) is expecting a valid weapon entity index and not a player index. |
Re: Whats Wrong I had Done :(
Replace rg_get_weaponbox_id(pevAttacker) with get_user_weapon(pevAttacker).
You should probably hook DeathMsg instead, because it may happen that the victim dies to a grenade while the attacker is holding a knife. Quote:
|
Re: Whats Wrong I had Done :(
You can use get_user_attacker(victim, CSW_WPNID); to catch the weapon.
|
Re: Whats Wrong I had Done :(
ohk. I know this method as I am rearning and exploring Reapi more so trying to with Reapi do take it wrong way please.
|
| All times are GMT -4. The time now is 11:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.