Ulysses

General => Off-Topic => Topic started by: Noey on July 27, 2018, 01:42:20 AM

Title: pointshop permanent gun spawn
Post by: Noey on July 27, 2018, 01:42:20 AM
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
Title: Re: pointshop permanent gun spawn
Post by: MrPresident on July 27, 2018, 04:31:19 PM
As this is not in the least bit related to ULX.. I'm moving it out of the general help forum.