Ulysses
General => Developers Corner => Topic started by: Bite That Apple on December 19, 2014, 03:20:12 PM
-
To be honest, I'm not sure if anyone can help me on this. I'm not going to try to spend 6111484 years looking for the answer myself, and maybe more experienced players with ulib can assist me, or maybe ULIB team themselves.
I'm looking for the hook or code that ulib uses to group the players data from data/users.txt. Sadly, ulx is still not using SQL, so I can't do this the easiest way, but I'm just looking for the code to properly get a players rank. Also looking for the code to get data/groups.txt and find the usergroups colors..
-
Player:GetUserGroup (http://ulyssesmod.net/docs/files/lua/ulib/shared/sh_ucl-lua.html#Player:GetUserGroup)
The vars for group colors are passed to client from uteam.lua using umsg.
group_data.color.<r|b|g> or a default.
Becomes team data colors.
See https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/modules/uteam.lua (https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/modules/uteam.lua) for server and https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/modules/cl/uteam.lua (https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/modules/cl/uteam.lua)
(Both are reasonably small files/code functions.)