• Adding donator perks to a admin ( ULX)
    6 replies, posted
Hello guys, i am using ULX on my server and i'm wondering how could i give vip (donator) to my admins without effecting their admin group In a question How can i give admins that donate to my server the same perks that my vip group has without taking away their admin powers ?
It all depends on what admin mod you're using if ulx then on the jobs that are donator it would look like this for ulx [LUA]TEAM_CITIZEN = AddExtraTeam("Citizen", { color = Color(20, 150, 20, 255), model = { "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "models/player/Group01/Male_02.mdl", "models/player/Group01/Male_05.mdl", "models/player/Group01/Male_06.mdl", "models/player/Group01/Male_08.mdl", }, description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]], weapons = {"hl2_combo_fist"}, command = "citizen", max = 0, salary = 45, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return ply:IsUserGroup("donator") or ply:IsAdmin() end })[/LUA] For FAdmin it would look like [LUA]customCheck = function(ply) return ply:GetNWString("usergroup") == "donator" or ply:IsAdmin() end[/LUA]
That would not work at all... That would give it to them even if they have not donated, read before you post please :)
Well maybe you could make another rank called something such as DAdmin "D" for donated or donator Admin. If the user has donated then give them the rank DAdmin and in the code change [LUA]ply:IsAdmin[/LUA] to say [LUA]ply:IsUserGroup("dadmin")[/LUA] Sorry for me not reading carefully. EDIT: This is for if you did decide to do that :P [LUA]customCheck = function(ply) return ply:IsUserGroup("donator") or ply:IsUserGroup("dadmin") end[/LUA]
Guys I'm also looking something similar to this but I'm wondering can you have sub/ secondary groups for ulx groups, so an admin is the main group but player can also be added to donator group so it receives the privileges from both groups. (to OP) Sorry for jacking your thread I just didn't want to open another one seeing as we are basically asking for the same thing :p
you can give them a ulx privilege called donator or something and use ucl.query wherever you assign your donator stuff instead of the usergroup. For examples how to use this look at the asay command, it has the asaysee permission it uses to check if a usergroup can see asay.
You could always modify the player.lua :) Add a function under function meta:ChangeTeam(t, force) that checks whether the player's usergroup is donator then GAMEMODE:Notify() them if they're not a donator.
Sorry, you need to Log In to post a reply to this thread.