Buy Galil


SUBMITTED BY: Guest

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

FORMAT: Lua

SIZE: 720 Bytes

HITS: 9052

  1. ITEM.Name = 'Galil'
  2. ITEM.Price = 7000
  3. ITEM.Model = 'models/weapons/w_rif_galil.mdl'
  4. ITEM.WeaponClass = 'weapon_ttt_galil'
  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