So, I have a weapons menu, and the player can choose the normal menu, gold menu and super menu
Gold menu weapons take double damage, and super take 3x damage
PHP Code:
public Damage(victim, inflictor, attacker, Float:damage, damagebits)
{
if(is_user_connected(victim) || is_user_alive(victim))
{
if( get_user_weapon(attacker) == CSW_AK47 )
{
if (AreGoldenAk[attacker])
{
SetHamParamFloat( 4, damage * 2 )
return HAM_HANDLED
}
if (AreSuperAk[attacker])
{
SetHamParamFloat( 4, damage * 3)
return HAM_HANDLED
}
}
}
return HAM_IGNORED
}
But this isn't working and I don't know why...
I use the same bools (AreGoldenAk and AreSuperAk) to change the skins and works!
Can someone help me?