• how do I create a job limited to v.i.p and admins only?
    10 replies, posted
I need help with this i tried stuff like [URL="http://wiki.darkrp.com/index.php/DarkRP-Config"]http://wiki.darkrp.com/index.php/DarkRP-Config[/URL] and i thought that would work for sure but it didn't... I use ulx and want to restrict upperclass person to v.i.p and admins only. How do i do this? This is what i did and it did not work [table="width: 1200, class: grid, align: left"] [tr] [td]TEAM_UPCIT = AddExtraTeam("Upperclass Person", Color(255,0,0,255), {"models/player/Group01/Female_01.mdl", "models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "models/player/Group01/Female_07.mdl", "models/player/group01/male_01.mdl", "models/player/Group01/Male_02.mdl", "models/player/Group01/male_03.mdl", "models/player/Group01/Male_04.mdl", "models/player/Group01/Male_05.mdl", "models/player/Group01/Male_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl", "models/player/monk.mdl", "models/player/mossman.mdl", "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/Group03/Female_07.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl", "models/player/daftpunk/daft_gold.mdl", "models/player/daftpunk/daft_silver.mdl"}, [[Yay Your an upperclass citizen! So much better than those loser Citizens. YAY!]], {}, "vip", 0, 65, 0, false, function(ply) return ply:GetNWString("usergroup") == "v.i.p" or ply:IsAdmin() end) /* [/td] [/tr] [/table]
[img]http://i.imgur.com/HkKwg.png[/img]
That is what i tried to do....[QUOTE=boxxyy;37424618][img]http://i.imgur.com/HkKwg.png[/img][/QUOTE]
[QUOTE=puppycheese;37430977]That is what i tried to do....[/QUOTE] You didn't replace what it says to replace. Try it again.
Just tried it and it didn't work...[QUOTE=boxxyy;37431021]You didn't replace what it says to replace. Try it again.[/QUOTE]
[QUOTE=puppycheese;37424322]I need help with this i tried stuff like [URL="http://wiki.darkrp.com/index.php/DarkRP-Config"]http://wiki.darkrp.com/index.php/DarkRP-Config[/URL] and i thought that would work for sure but it didn't... I use ulx and want to restrict upperclass person to v.i.p and admins only. How do i do this? This is what i did and it did not work [table="width: 1200, class: grid, align: left"] [tr] [td]TEAM_UPCIT = AddExtraTeam("Upperclass Person", Color(255,0,0,255), {"models/player/Group01/Female_01.mdl", "models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "models/player/Group01/Female_07.mdl", "models/player/group01/male_01.mdl", "models/player/Group01/Male_02.mdl", "models/player/Group01/male_03.mdl", "models/player/Group01/Male_04.mdl", "models/player/Group01/Male_05.mdl", "models/player/Group01/Male_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl", "models/player/monk.mdl", "models/player/mossman.mdl", "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/Group03/Female_07.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl", "models/player/daftpunk/daft_gold.mdl", "models/player/daftpunk/daft_silver.mdl"}, [[Yay Your an upperclass citizen! So much better than those loser Citizens. YAY!]], {}, "vip", 0, 65, 0, false, function(ply) return ply:GetNWString("usergroup") == "v.i.p" or ply:IsAdmin() end) /* [/td] [/tr] [/table][/QUOTE] [lua]TEAM_UPCIT = AddExtraTeam("Upperclassman", Color(255, 0, 0, 255), "models/player/group03/male_01.mdl", [[Yay Your an upperclass citizen! So much better than those loser Citizens. YAY!]], {}, "upperclassman", 0, 65, 0, 0, false, nil, function(ply) return ply:GetUserGroup() == "v.i.p" or ply:IsAdmin() end[/lua] Try that. If that doesn't work then there's some other problem.
If what he posted doesn't work try this. [lua]TEAM_UPCIT = AddExtraTeam("Upperclassman", Color(255, 0, 0, 255), "models/player/group03/male_01.mdl", [[Yay Your an upperclass citizen! So much better than those loser Citizens. YAY!]], {}, "upperclassman", 0, 65, 0, 0, false, nil, function(ply) return ply:CheckGroup("v.i.p") end)[/lua]
neither of them worked....[QUOTE=obliviator;37432731]If what he posted doesn't work try this. [lua]TEAM_UPCIT = AddExtraTeam("Upperclassman", Color(255, 0, 0, 255), "models/player/group03/male_01.mdl", [[Yay Your an upperclass citizen! So much better than those loser Citizens. YAY!]], {}, "upperclassman", 0, 65, 0, 0, false, nil, function(ply) return ply:CheckGroup("v.i.p") end)[/lua][/QUOTE]
Pastebin the contents of garrysmod/data/ULib/groups.txt and link it here.
[url]http://pastebin.com/GhLbMdQC[/url][QUOTE=Drakehawke;37434425]Pastebin the contents of garrysmod/data/ULib/groups.txt and link it here.[/QUOTE]
Try [lua] TEAM_UPCIT = AddExtraTeam("Upperclassman", Color(255, 0, 0, 255), "models/player/group03/male_01.mdl", [[Yay Your an upperclass citizen! So much better than those loser Citizens. YAY!]], {}, "upperclassman", 0, 65, 0, 0, false, nil, function(ply) return ply:CheckGroup("v.i.p") or ply:IsAdmin() end)[/lua]
Sorry, you need to Log In to post a reply to this thread.