Raised This Month: $ Target: $400
 0% 

different Knives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pur3Biatch
Junior Member
Join Date: Jun 2011
Location: Czech Republic
Old 08-11-2011 , 12:01   Re: different Knives
Reply With Quote #1

Custom Damage ->
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>


public plugin_init() 
{
    
RegisterHam(Ham_TakeDamage"player""player_takedamage")    
}

public 
player_takedamage(victiminflictorattackerFloat:damagedamage_bits)
{
    if(
is_user_alive(attacker))
    {
        if(
get_user_weapon(attacker) == CSW_KNIFE)
        {
            if(
HasBerserk[attacker])
            {        
                
SetHamParamFloat(450//but it's left and right mouse button 
                //when attacking you give 50 damage
                
if(get_pdata_int(victim75) == HIT_HEAD//HeadShot
                
{
                    
SetHamParamFloat(475)
                                                        
// If you attack someone and give head give 75 damage
                
}
            }
        }
    }

And for other sound look at -> this <-

Last edited by Pur3Biatch; 08-11-2011 at 12:04.
Pur3Biatch is offline
Send a message via Skype™ to Pur3Biatch
Pur3Biatch
Junior Member
Join Date: Jun 2011
Location: Czech Republic
Old 08-11-2011 , 16:59   Re: different Knives
Reply With Quote #2

Quote:
Originally Posted by Pur3Biatch View Post
And for other sound look at -> this <-
Pur3Biatch is offline
Send a message via Skype™ to Pur3Biatch
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:21.


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