PHP Code:
switch_model(id)
{
if (!shModActive() || !is_user_alive(id) || !gHasSuperPower[id] ) return
if (get_user_weapon(id) == CSW_M4A1)
{
set_pev(id, pev_viewmodel2, gSuperWeapon)
}
if (get_user_weapon(id) == CSW_DEAGLE)
{
set_pev(id, pev_viewmodel2, gSuperWeapon)
}
}
You used gSuperWeapon twice. Meaning, if they switch to deagle, they would get the M4A1 model.
__________________