Change the damage of the knife
How can I change the damage of the knife in a player?
Thx |
Re: Change the damage of the knife
Code:
#include <amxmodx> |
Re: Change the damage of the knife
This : !(1 <= id <= g_iMaxPlayers) is not needed since the forward is registered with classname "player".
Also i think is_user_alive(id) is not needed. Last, you should check if inflictor is same as attacker. When a player is hit by a hegrenade, when damage is proceeded, attacker can have his knife on, so if inflictor is not same as attacker, just return the function. |
Re: Change the damage of the knife
Okay so this is fine?
Code:
#include <amxmodx> |
Re: Change the damage of the knife
!(1 <= attacker <= g_iMaxPlayers) would be faster than is_user_connected.
Was not need for id, but not for attacker. I would try something like this : PHP Code:
|
Re: Change the damage of the knife
Thx, this work, +karma :D
|
| All times are GMT -4. The time now is 09:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.