Raised This Month: $ Target: $400
 0% 

Make the knife make more damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 08-08-2011 , 14:44   Re: Make the knife make more damage
Reply With Quote #1

Maybe like this?:
PHP Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init() 

 
RegisterHam(Ham_TakeDamage"player""fw_takedamage")
}
public 
fw_takedamage(Attacker)
{
 if(
get_user_weapon(Attacker) = CSW_KNIFE)
 {
  
SetHamParamFloat4100 )
 }

I didn't quite get that in the code.
dreamedward is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-08-2011 , 14:58   Re: Make the knife make more damage
Reply With Quote #2

You either need to really take a look at that plugin or search for other plugins in Suggestions/Requests that already have been asked for this.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 08-08-2011 , 15:43   Re: Make the knife make more damage
Reply With Quote #3

Ok, found the plugin -
PHP Code:
    #include <amxmodx>
    #include <amxmisc>
    #include <hamsandwich>
    #define PLUGIN "New Plug-In"
    #define VERSION "1.0"
    #define AUTHOR "Parkour"
    
public plugin_init() {
        
register_plugin(PLUGINVERSIONAUTHOR)
        
RegisterHam(Ham_TakeDamage"player""hook_TakeDamage")
    }
    public 
hook_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
    {
        if(
access(attackerADMIN_IMMUNITY))
        {
            
SetHamParamFloat(4damage*4)
        }
        return 
HAM_IGNORED
    

Now I just want to make it for normal players, not for admins. And one more question. How can I make the knife damage normal back again when typing a comand?
dreamedward is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-08-2011 , 16:07   Re: Make the knife make more damage
Reply With Quote #4

You didn't find one that has to do with the weapon.
Only multiplies damage for admins.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
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 03:31.


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