• How to make weapons (knives) in the Pointshop NOT equip upon purchase?
    0 replies, posted
Hey everyone, I've got a Jailbreak server running Jailbreak 7 by Excl and am trying to add some CS:GO knives to the pointshop. However, when players purchase the knives, they automatically equip them. This is bad because at any time a prisoner can just spawn a knife and shank the hell out of everyone else. I'd like it so that when the players purchase a knife from the pointshop, they do not equip the knife into their inventory straight away, but the next time they pick up a knife, it will be that knife they have equipped. Also, even after purchase, players can just equip a knife skin and it will appear in their inventory (not good). Here's the current pointshop code for one of the knives: [CODE] ITEM.Name = 'M9 Bayonet Knife' .. ' | ' .. 'Tiger Tooth' ITEM.Price = 20000 ITEM.Model = 'models/weapons/w_csgo_m9.mdl' ITEM.Skin = 9 ITEM.WeaponClass = 'csgo_m9_tiger' function ITEM:OnEquip(ply) ply:Give(self.WeaponClass) end function ITEM:OnBuy(ply) ply:Give(self.WeaponClass) ply:SelectWeapon(self.WeaponClass) end function ITEM:OnSell(ply) ply:StripWeapon(self.WeaponClass) end function ITEM:OnHolster(ply) ply:StripWeapon(self.WeaponClass) end [/CODE] I appreciate any help that can be given! :)
Sorry, you need to Log In to post a reply to this thread.