Raised This Month: $ Target: $400
 0% 

knife dmg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-29-2009 , 18:13   knife dmg
Reply With Quote #1

How can i remove knife dmg? player can not be knifed. but other weapons can be damaged.
__________________
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
Dr.G
Senior Member
Join Date: Nov 2008
Old 03-29-2009 , 18:20   Re: knife dmg
Reply With Quote #2

one ffs search just for once
__________________
Dr.G is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-29-2009 , 18:21   Re: knife dmg
Reply With Quote #3

Search for weapon damage plugin.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Old 03-29-2009, 18:21
One
This message has been deleted by One.
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-29-2009 , 18:27   Re: knife dmg
Reply With Quote #4

hah? if u mean i have to search:
1. i searched
2. forwhat shoul i search? i searched for knife & saw 2 sites but nothing (

EDIT: ok, ill do it. maybe i can find there anything

EDIT 2 : http://forums.alliedmods.net/search....archid=3697568

omg.
__________________
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
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-29-2009 , 18:34   Re: knife dmg
Reply With Quote #5

Code:
    #include <amxmodx>     #include <fakemeta>     #include <hamsandwich>         new gMaxClients;         #define IsPlayer(%1)  ( 1 <= %1 <= gMaxClients )     #define HasKnife(%1)  ( IsPlayer( %1 ) && get_user_weapon( %1 ) == CSW_KNIFE )         #define DMG_KNIFE     ( DMG_NEVERGIB | DMG_BULLET )         public plugin_init()     {         register_plugin( "No Knife Damage", "1.0.0", "Arkshine" );                 RegisterHam( Ham_TakeDamage, "player", "Event_PlayerTakeDamage" );         gMaxClients = get_maxplayers();     }         public Event_PlayerTakeDamage ( Victim, Inflictor, Attacker, Float:Damage, Damagebits )     {         return HasKnife( Attacker ) && ( Damagebits & DMG_KNIFE ) ? HAM_SUPERCEDE : HAM_IGNORED;     }

Should work.

Last edited by Arkshine; 03-29-2009 at 18:41.
Arkshine is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-29-2009 , 18:36   Re: knife dmg
Reply With Quote #6

Quote:
Originally Posted by arkshine View Post
Code:
#include <amxmodx> #include <fakemeta> #include <hamsandwich> new gMaxClients;
#define IsPlayer(%1) ( 1 <= %1 <= gMaxClients ) public plugin_init() { register_plugin( "No Knife Damage", "1.0.0", "Arkshine" );

RegisterHam( Ham_TakeDamage, "player", "Event_PlayerTakeDamage" );
gMaxClients = get_maxplayers();
} public Event_PlayerTakeDamage ( Victim, Inflictor, Attacker, Floatamage, Damagebits ) { return IsPlayer( Attacker ) && get_user_weapon( Attacker ) == CSW_KNIFE
&& Damagebits & ( DMG_NEVERGIB | DMG_BULLET ) ) ? HAM_SUPERCEDE : HAM_IGNORED;
}



Should work.
Wow. this sounds to work. Ty, ill test this tomorrow . TYTY
__________________
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
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-29-2009 , 18:45   Re: knife dmg
Reply With Quote #7

It works, I just tested.
Arkshine is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-29-2009 , 18:49   Re: knife dmg
Reply With Quote #8

Quote:
Originally Posted by arkshine View Post
It works, I just tested.
Oh. Perfect. i´m with leptop online & not installed CS Ty agail. give +k tomorow gave 2day to much
__________________
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
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 03-30-2009 , 14:15   Re: knife dmg
Reply With Quote #9

Nice, nice ...very nice ark i was thinking of making something wich will use that =D
__________________

anakin_cstrike is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-30-2009 , 14:24   Re: knife dmg
Reply With Quote #10

I never could write this. not in first 10000 years. TY again.
__________________
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
Reply



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 08:55.


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