Advertisement
Guest User

Untitled

a guest
Sep 15th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. TEM.Name = 'Pump Shotgun'
  2. ITEM.Price = 10
  3. ITEM.Model = 'models/weapons/w_shot_m3super90.mdl'
  4. ITEM.WeaponClass = 'weapon_ttt_pumpshotgun'
  5. ITEM.SingleUse = true
  6. --ITEM.AllowedUserGroups = { "admin", "vip" } --Edit however you'd like(If you want to use this remove the -- in-front of ITEM.)
  7. function ITEM:OnBuy(ply)
  8.     ply:Give(self.WeaponClass)
  9.     ply:SelectWeapon(self.WeaponClass)
  10. end
  11.  
  12. function ITEM:OnSell(ply)
  13.     ply:StripWeapon(self.WeaponClass)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement