Thread: Hero problem!
View Single Post
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 05-09-2011 , 17:36   Re: Hero problem!
Reply With Quote #17

switch_model(id)
{
if (!
sh_is_active() || !is_user_alive(id) || !gHasBones[id] ) return

if (
get_user_weapon(id) == CSW_GALIL)
if (
get_user_weapon(id) == CSW_DEAGLE)
{
set_pev(id, pev_viewmodel2, gBonesGalil)
set_pev(id, pev_weaponmodel2, gBonesGalil2)
set_pev(id, pev_viewmodel2, gBonesDeagle)
set_pev(id, pev_weaponmodel2, gBonesDeagle2)
}
}

You can't have two weapons up at the same time. Use else if.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod