• darkrp custom jobs
    8 replies, posted
Ok so i have this coding for my darkrp server and i have some jobs that i dont want trial mods and moderators to get access to (because you know how sometimes mods can be immature and are not the people you think they are) and i need that fixed [CODE]customCheck = function(ply) return ply:CheckGroup("vip") or ply:CheckGroup("vip+") or ply:CheckGroup("admin") or ply:CheckGroup("superamdin") or ply:CheckGroup("modvip") or ply:CheckGroup("modvip+") or ply:CheckGroup("stafftrainer") or ply:CheckGroup("owner") or ply:CheckGroup("co-owner") or ply:CheckGroup("developer") end[/CODE]
You need new staff and/or new tab and enter keys
rejax what im saying is i dont want to reward trial mods and mods with vip jobs for free if thy didnt earn it
You might want to read up on, what CheckGroup actually does. [url]http://ulyssesmod.net/docs/files/lua/ulib/shared/sh_ucl-lua.html#Player:CheckGroup[/url]
Holy shit how many of these kiddie ranks do you need? All you need is - Management/Owner ........ Super Admin .......... Admin .......... Donator ....... User
but when i tried to fix it so it said [CODE]GetUserGroup() == "vip" or GetUserGroup() == "vip+"[/CODE] it caused some lua errors
It says Player:GetUserGroup And here your Player entity is ply. So it's ply:GetUserGroup()=="superMegaVipPlusAdmin"
So I would use for example [CODE]customCheck = function(ply) return ply:GetUserGroup()=="vip" or ply:GetUserGroup()=="vip+"[/CODE] and be able to keep adding them on so forth
Yes but instead of adding all your admin groups just use ply:IsAdmin() which will return true for admins and higher.
Sorry, you need to Log In to post a reply to this thread.