Shotgun


SUBMITTED BY: Guest

DATE: May 14, 2013, 6:08 p.m.

FORMAT: Lua

SIZE: 726 Bytes

HITS: 1732

  1. ITEM.Name = 'Shotgun'
  2. ITEM.Price = 10000
  3. ITEM.Model = 'models/weapons/w_shot_xm1014.mdl'
  4. ITEM.WeaponClass = 'weapon_ttt_spas12'
  5. ITEM.SingleUse = false
  6. ITEM.AllowedUserGroups = { "admin", "donator", "superadmin","vipmoderator","vetadmin","sdonator","bdonator","gdonator","ddonator" }
  7. function ITEM:OnBuy(ply)
  8. ply:Give(self.WeaponClass)
  9. ply:SelectWeapon(self.WeaponClass)
  10. end
  11. function ITEM:OnSell(ply)
  12. ply:StripWeapon(self.WeaponClass)
  13. end
  14. function ITEM:OnHolster(ply)
  15. ply:StripWeapon(self.WeaponClass)
  16. end
  17. function ITEM:OnEquip(ply)
  18. ply:Give(self.WeaponClass)
  19. ply:SelectWeapon(self.WeaponClass)
  20. end

comments powered by Disqus