Gman


SUBMITTED BY: Guest

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

FORMAT: Lua

SIZE: 549 Bytes

HITS: 1772

  1. ITEM.Name = 'G-Man'
  2. ITEM.Price = 1000
  3. ITEM.Model = 'models/player/gman_high.mdl'
  4. ITEM.AllowedUserGroups = { "admin", "donator", "superadmin","vipmoderator","vetadmin","sdonator","bdonator","gdonator","ddonator" }
  5. function ITEM:OnEquip(ply, modifications)
  6. if not ply._OldModel then
  7. ply._OldModel = ply:GetModel()
  8. end
  9. timer.Simple(1, function() ply:SetModel(self.Model) end)
  10. end
  11. function ITEM:OnHolster(ply)
  12. if ply._OldModel then
  13. ply:SetModel(ply._OldModel)
  14. end
  15. end

comments powered by Disqus