Quote:
Originally Posted by Bugsy
I would need to see how the the skin is applied to the weapon. Is it only set as the model?
|
PHP Code:
new V_MODEL[64] = "models/new/v_ak47.mdl"
new P_MODEL[64] = "models/new/p_ak47.mdl"
public plugin_init()
{
register_event("CurWeapon","CurrentWeapon","be","1=1")
}
public CurrentWeapon(id)
{
replace_weapon_models(id, read_data(2))
}
replace_weapon_models(id, weaponid)
{
switch (weaponid)
{
case CSW_AK47:
{
if(iSelect[id])
{
set_pev(id, pev_viewmodel2, V_MODEL)
set_pev(id, pev_weaponmodel2, P_MODEL)
}
}
}
}