PHP Code:
#include <amxmodx>
#include <hamsandwich>
const DAY_YOU_WANT_TO_INCREASE_DAMAGE = 5;
public plugin_init( )
{
RegisterHam( Ham_TakeDamage, "player", "fw_TakeDamage" );
}
public fw_TakeDamage( victim, inflictor, attacker, Float:damage, damage_type )
{
if( is_user_alive( attacker ) && get_user_weapon( attacker ) == CSW_DEAGLE && get_jailbreak_day( ) == DAY_YOU_WANT_TO_INCREASE_DAMAGE )
{
damage *= 2;
SetHamParamFloat( 4, damage );
}
}
public get_jailbreak_day( ) // just to make an example
return current_day;
__________________