Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local toolranks = {
- trusted = true,
- builder = true,
- moderator = true,
- admin = true,
- superadmin = true,
- eventstaff = true
- }
- function givethetools(ply)
- if not(ply:IsNewBPlayer()) then -- Doesnt have information
- local rankcat = ply:GetRankCategory()
- local rank = ply:GetRank()
- if (toolranks[ply:GetUserGroup()]) or (rankcat == "1" and rank >= 8) or (rankcat == "3" and rank >= 8)
- or (rankcat == "4" and rank != 1) or (rankcat == "5" and rank >= 5) then
- ply:Give("weapon_physgun")
- ply:Give("gmod_tool")
- end
- end
- end
- hook.Add( "PlayerSpawn", "givetoolstuff", givethetools)
- hook.Add( "PlayerInitialSpawn", "givetoolstuff2", givethetools)
Add Comment
Please, Sign In to add comment