• Admin on Duty job problem?
    5 replies, posted
I've got my AOD on any other rank but Moderator can I have the code or what's the problem for the code? Thx. TEAM_AOD = AddExtraTeam("Admin On Duty", { color = Color(51, 204, 204, 255), model = "models/player/barney.mdl", description = [[you are a admin. move your ass and watch the server!]], weapons = {"arrest_stick","med_kit","pocket","unarrest_stick","weapon_keypadchecker","gmod_tool","weaponchecker"}, command = "aod", max = 10, salary = 1200, admin = 1, vote = false, hasLicence = false, prior = false, customCheck = function(ply) return ply:IsUserGroup("Owner") or ply:IsUserGroup("Co-Owner") or ply:IsUserGroup("Moderator") or ply:IsUserGroup("admin") end })
[code] TEAM_AOD = AddExtraTeam("Admin on duty", { color = Color(153, 102, 51, 255), model = {"models/player/barney.mdl"}, description = [[You are a admin. move your ass and watch the server!]], weapons = {arrest_stick","med_kit","pocket","unarrest_stick ","weapon_keypadchecker","gmod_tool","weaponchecker"}, command = "aod", max = 10, salary = 1200, admin = 1, vote = false, hasLicense = true, customCheck = function(ply) return ply:GetUserGroup()=="moderator" --You don't need to add ranks are admin "admin =" is "1" end }) [/code] Boom.
Thanks, but Moderators can't see the rank. [editline]1st August 2014[/editline] job*
Change custom check to [code] customCheck = function(ply) return CLIENT or ply:GetUserGroup() == "moderator" end [/code] Next time, [URL="http://facepunch.com/forumdisplay.php?f=65"]go here[/URL]
Alright thanks. [editline]2nd August 2014[/editline] It's still not working.
Change admin = 1, to admin = 0
Sorry, you need to Log In to post a reply to this thread.