I'm trying to get my pointshop weapons to be permanent again. For some reason they will not spawn with the player like they used to. It used to work a while ago for me, but I deleted the weapons folder because at the time I didn't want them.
As of right now, if a player buys the magnum and dies, they will not spawn with it. It will still be in their inventory, but they would have to sell the gun and buy it back to get it in a new round.
Here is an example code, not sure why it won't work. I've tried re-installing point shop, but that didn't help.
[code]ITEM.Name = '357 Magnum'
ITEM.Price = 200
ITEM.Model = 'models/weapons/w_357.mdl'
ITEM.WeaponClass = 'weapon_357'
ITEM.SingleUse = false
function ITEM:OnBuy(ply)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end
function ITEM:OnSell(ply)
ply:StripWeapon(self.WeaponClass)
end[/code]
[editline]9th January 2014[/editline]
Never mind changed this and it worked
[code]function ITEM:OnBuy(ply)
end
function ITEM:OnSell(ply)
ply:StripWeapon(self.WeaponClass)
end
function ITEM:OnHolster(ply)
ply:StripWeapon(self.WeaponClass)
end
function ITEM:OnEquip(ply)
ply:Give(self.WeaponClass)
ply:SelectWeapon(self.WeaponClass)
end[/code]
Sorry, you need to Log In to post a reply to this thread.