Quote:
Originally Posted by Jon
PHP Code:
// Bugsy's code
#define IsPlayer(%1) (1<=%1<=g_MaxClients)
RegisterHam( Ham_TakeDamage , "player" , "fw_HamTakeDamage" )
public fw_HamTakeDamage( Victim , Inflictor , Attacker , Float:fDamage , BitDamage ) { if ( IsPlayer( Attacker ) && ( cs_get_weapon_id( Inflictor ) == CSW_KNIFE ) ) { //Victim hurt with knife } }
|
you wanna kidding me? oO i said i cant use this. i dont want to give a user hp back when the attacker made damage by jumping & not knife. oO
imaing : there is a mod, which strips all you'r weapon & you just get a knife. you can kill an enemey by jumping/touching the players. so you'r weapon which you have in you'r hand is KNIFE but you dont make damage with the knife. you just make the damage with jumping.
so now i want to disable knife's damage but the effect which a knife damage do ( slowdown when attacked ) must be there. you just get damage when knifed but after 0.00000000000x sec. you become the damage back & you can't die by knife damages. only jump or touch damage can kill you oO
__________________