I think that get_user_weapon(attacker) isn't used in this way... So try something like this:
PHP Code:
in plugin_init
register_event("CurWeapon", "switchedWeapon", "be"); // I don't know if is really "be" or "ae" :x
then create a global variable to store if player is using a SG550, something like
bool:g_usingSG550[33];
then implement switchedWeapon, something like:
public switchedWeapon()
{
static
ent,
szClass[32];
ent = read_data(2); // Get weapon ID
pev(ent, pev_classname, szClass, 31); // Get weapon class
if (equal(szClass, "weapon_sg550"))
g_usingSG550[pev(ent, pev_owner)] = true;
else
g_usingSG550[pev(ent, pev_owner)] = false;
}
in fw_TakeDamage
public fw_TakeDamage(victim, inflictor, attacker, Float:damage)
{
if (victim != attacker && is_user_connected(attacker))
{
if (g_usingSG550[attacker])
{
if(g_has_as50[attacker])
SetHamParamFloat(4, damage * get_pcvar_float(cvar_dmg_as50))
}
}
}
ps: I never used this, so I'm sorry if doesn't work