I thought i solve it with get-user_wepon but it doesn't work
PHP Code:
if(PW[id])
{
PW[id]=0;
new ammo,clip;
if( get_user_weapon(id,clip,ammo) == CSW_KNIFE )
console_cmd(id,"lastinv;lastinv");
}
else
{
PW[id]=1;
new ammo,clip;
if( get_user_weapon(id,clip,ammo) == CSW_KNIFE )
set_pev( id, pev_viewmodel2, g_NewModel );
}
If I have a pistol it still change the model.Why?
__________________