General > Off-Topic

pointshop permanent gun spawn

(1/1)

Noey:
so i have the code
ITEM.Name = 'Glock'
ITEM.Price = 50
ITEM.Model = 'models/weapons/w_pist_glock18.mdl'
ITEM.WeaponClass = 'weapon_ttt_glock'
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


the issue with this code is when i buy something lets say anytime im alive it gives me the gun. The issue is after the round is over it won't give me the gun again

MrPresident:
As this is not in the least bit related to ULX.. I'm moving it out of the general help forum.

Navigation

[0] Message Index

Go to full version