Author Topic: pointshop permanent gun spawn  (Read 228 times)

0 Members and 1 Guest are viewing this topic.

Offline Noey

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
  • Co-owner of Paradox TTT with Ulx
pointshop permanent gun spawn
« 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
-Noey

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2642
  • Karma: 414
    • |G4P| Gman4President
Re: pointshop permanent gun spawn
« Reply #1 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.