Try this
PHP Code:
new g_WeaponList = ( 1 << CSW_AK47 ) | ( 1 << CSW_M4A1 ) | ( 1 << CSW_AWP );
public PreDoubleDamage( id , iInflictor , iAttacker , Float:fDamage , Damagebits )
{
if ( ( iAttacker == iInflictor ) && bHasWeapon[ iAttacker ] && is_user_connected( iAttacker ) && ( g_WeaponList & ( 1 << get_user_weapon( iAttacker ) ) ) )
{
SetHamParamFloat( 4 , fDamage * 2.0 );
return HAM_HANDLED;
}
return HAM_IGNORED;
}
__________________