Advertisement
Guest User

Untitled

a guest
Jan 29th, 2014
53
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ITEM.Name = "Combine Elite"
  2. ITEM.Price = 10000
  3. ITEM.Model = "models/Combine_Super_Soldier.mdl"
  4. ITEM.SingleUse = false
  5. ITEM.AllowedUserGroups = { "admin", "superadmin", "Elite" }
  6.  
  7. function ITEM:OnEquip(ply, modifications)
  8. if not ply._OldModel then
  9. ply._OldModel = ply:GetModel()
  10. end
  11.  
  12. timer.Simple(1, function() ply:SetModel(self.Model) end)
  13. end
  14.  
  15. function ITEM:OnHolster(ply)
  16. if ply._OldModel then
  17. ply:SetModel(ply._OldModel)
  18. end
  19. end
  20.  
  21. function ITEM:PlayerSetModel(ply)
  22. ply:SetModel(self.Model)
  23. end
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement