Raised This Month: $ Target: $400
 0% 

catch knife attack


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 10-11-2009 , 05:18   Re: catch knife attack
Reply With Quote #9

Quote:
Originally Posted by Jon View Post
PHP Code:

// Bugsy's code

#define IsPlayer(%1)            (1<=%1<=g_MaxClients)

RegisterHamHam_TakeDamage "player" "fw_HamTakeDamage" )

public 
fw_HamTakeDamageVictim Inflictor Attacker Float:fDamage BitDamage 
{
    if ( 
IsPlayerAttacker ) && ( cs_get_weapon_idInflictor ) == 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
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode