For some reason when i add this to the pointshop and equip it i dont spawn with it. But it works if i do: ITEM.SingleUse = true. I want to be able to have people spawn with this permanently. Please state what i'm doing wrong! Thank you!
[code]ITEM.Name = 'CSS Knife'
ITEM.Price = 10000
ITEM.Model = 'models/weapons/w_knife_t.mdl'
ITEM.WeaponClass = 'weapon_knife'
function ITEM:OnBuy(ply)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end
function ITEM:OnSell(ply)
ply:StripWeapon(self.WeaponClass)
end[/code]
Regive it to players who bought it on next round?
[CODE]function ITEM:OnEquip(ply)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end
function ITEM:OnHolster(ply)
ply:StripWeapon(self.WeaponClass)
end
[/CODE]
Also add ITEM:SingleUse false
Sorry, you need to Log In to post a reply to this thread.