death dont get knife

hi i have a deathrun server and when someone have a knife from the pointshop so when they death it not give him the knife
code of my knives :


ITEM.Name = 'Bayonet'
ITEM.Price = 8000
ITEM.Model = 'models/weapons/w_csgo_bayonet.mdl'
ITEM.WeaponClass = 'csgo_bayonet'
ITEM.SingleUse = false

function ITEM:OnEquip(ply)
	ply:Give(self.WeaponClass)
	ply:SelectWeapon(self.WeaponClass)
end

function ITEM:OnSell(ply)
	ply:StripWeapon(self.WeaponClass)
end

any idies ?

You’re looking the cat from the butthole…Not the head

Please bring back the “bad spelling” rating.

sick comment help me alot tnx idiot jeez stfu if you dont have something smart to say

[editline]29th July 2016[/editline]

wow sad kiddo so im not that good at english so ? why did you comment any way prick


ITEM.Name = 'Bayonet'
ITEM.Price = 800
ITEM.Model = 'models/weapons/w_csgo_bayonet.mdl'
ITEM.WeaponClass = 'csgo_bayonet'

function ITEM:OnEquip(ply)
ply:StripWeapon('csgo_bayonet')
    ply:Give(self.WeaponClass)
    ply:SelectWeapon(self.WeaponClass)
end

function ITEM:OnHolster(ply)
    ply:StripWeapon(self.WeaponClass)
    ply:Give('csgo_bayonet')
    ply:SelectWeapon('csgo_bayonet')
end

change the code after


ITEM.WeaponClass = 'csgo_bayonet'


and remember to rename “csgo_bayonet” to what ever other weapon ur using