Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add("PrePACConfigApply", "RestrictTheMinges", function(ply, outfit_data)
- local Rank = ply:GetRank()
- local Category = ply:GetRankCategory()
- local Team = team.GetName(ply:Team())
- if (Category == "1" and Rank < 8 and Team != "Republic Medical Corps")
- or
- (ply:GetRankCategory() == "3" and Rank < 8)
- or
- (Category == "4" and Rank == 1) or (Category == "5" and Rank < 5)
- then ply:ChatPrint("PAC3 is restricted.")
- return false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement