Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ITEM.Name = 'Fat Majini'
- ITEM.Price = 0
- ITEM.Model = 'Models/player/slow/amberlyn/re5/fat_majini/slow.mdl'
- ITEM.AllowedUserGroups = { "owner", "vip" }
- function ITEM:CanPlayerBuy(ply)
- return team.GetName(ply:Team()) == "Survivors"
- end
- function ITEM:CanPlayerEquip(ply)
- return ply:Team() == TEAM_HUMAN -- only if alive
- end
- function ITEM:OnEquip(ply, modifications)
- if not ply._OldModel then
- ply._OldModel = ply:GetModel()
- end
- if ply:Team() == TEAM_HUMAN then
- timer.Simple(1, function() ply:SetModel(self.Model) end)
- end end
- function ITEM:OnHolster(ply)
- if ply._OldModel and not ply:Team() == TEAM_HUMAN then
- ply:SetModel(ply._OldModel)
- end
- end
- function ITEM:PlayerSetModel(ply)
- ply:SetModel(self.Model)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement