Raised This Month: $ Target: $400
 0% 

increase bullet damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 06-16-2012 , 21:37   Re: increase bullet damage
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <hamsandwich>

const DAY_YOU_WANT_TO_INCREASE_DAMAGE 5;

public 
plugin_init( ) 
{
    
RegisterHamHam_TakeDamage"player""fw_TakeDamage" );
}

public 
fw_TakeDamagevictiminflictorattackerFloat:damagedamage_type )
{
    if( 
is_user_aliveattacker ) && get_user_weaponattacker ) == CSW_DEAGLE && get_jailbreak_day( ) == DAY_YOU_WANT_TO_INCREASE_DAMAGE )
    {
        
damage *= 2;
        
SetHamParamFloat4damage );
    }
}

public 
get_jailbreak_day( ) // just to make an example
    
return current_day
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
 



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 06:11.


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