Raised This Month: $ Target: $400
 0% 

[Question]How To Increase Bullet Damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 12-24-2015 , 12:19   Re: [Question]How To Increase Bullet Damage
Reply With Quote #2

You should have searched first because it's not a rare question but anyway. Here is the code:
PHP Code:
#include <amxmodx>
#include <hamsandwich>

new g_amount

public plugin_init( ) 
{
    
RegisterHamHam_TakeDamage"player""fw_TakeDamage" );
    
g_amount register_cvar("amx_damage_increase" "1.5")
}

public 
fw_TakeDamagevictiminflictorattackerFloat:damagedamage_type )
{
    if( 
is_user_aliveattacker ))
    {
        
damage *= get_pcvar_float(g_amount)
        
SetHamParamFloat4damage );
    }

Example :
amx_cvar amx_damage_increase "1.5" - will multiply damage by 1.5 .
siriusmd99 is offline
 



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 17:59.


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