Ulysses
General => Developers Corner => Topic started by: Chironex on February 11, 2011, 02:43:03 PM
-
Hi guys ;)
I'm making a script and I need to sort groups by their power, but I can't find a way of doing it automatically. I would like to build a table, like this:
1 - Owner
2 - Superadmin
3 - Admin
4 - Respected
5 - Newcomer
6 - Minge
How can I do this? I may need "ULib.ucl.groups[ply:GetUserGroup()].inherit_from" but I have no idea what to do with it, and I'm not even sure if that's what I need... :S
Thanks in advance if you can help!
-
Maybe you're looking for ULib.ucl.getInheritanceTree (http://ulyssesmod.net/docs/files/lua/ulib/shared/sh_ucl-lua.html#ucl.getInheritanceTree)?
-
I'm sure that it's just what I need, thank you Meg ;)
Looking at XGUI's groups.lua helped me a lot, hehe