Alyx


SUBMITTED BY: Guest

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

FORMAT: Lua

SIZE: 543 Bytes

HITS: 9178

  1. ITEM.Name = 'Alyx'
  2. ITEM.Price = 1050
  3. ITEM.Model = 'models/player/alyx.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