Raised This Month: $ Target: $400
 0% 

increase bullet damage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
smdevilz
Junior Member
Join Date: Aug 2011
Old 06-16-2012 , 19:03   increase bullet damage
Reply With Quote #1

I'm running a jailbreak server, anyway I want to increase the bullet damage on the deagle to 100% for CTs and Ts on a select day. What is AMX code exactly needed to do this?

I looked into the HAM #define DMG_BULLET but not quite sure that is it.

I am new to AMX coding but get the general idea of what to do.

Last edited by smdevilz; 06-16-2012 at 19:07.
smdevilz is offline
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.-
smdevilz
Junior Member
Join Date: Aug 2011
Old 06-16-2012 , 21:43   Re: increase bullet damage
Reply With Quote #3

Thanks for taking the time to write up a script to help me out. I'll tweak it however necessary to get it to work with my current code. If there are any issues I will make another post.
smdevilz 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 06:11.


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