View Single Post
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 09-01-2010 , 15:56   Re: Hey I need some help with 1. time scripting =)
Reply With Quote #14

PHP Code:
switch_model(id)
{
 if (!
shModActive() || !is_user_alive(id) || !gHasSuperPower[id] ) return
 if (
get_user_weapon(id) == CSW_M4A1)
 {
  
set_pev(idpev_viewmodel2gSuperWeapon)
 }
 if (
get_user_weapon(id) == CSW_DEAGLE)
 {
    
set_pev(idpev_viewmodel2gSuperWeapon)
 }

You used gSuperWeapon twice. Meaning, if they switch to deagle, they would get the M4A1 model.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle