General > Developers Corner
I need help with a special sort of whitelist
Megiddo:
--- Quote from: zeaga on September 03, 2013, 09:42:37 PM ---I've used the function before and found it very useful. I wrote a mod that displays an icon next to a player if they are on your friends list that worked pretty well for the little it was meant to do.
Also, I don't mind requiring the player to be fully connected in order to use this function. Actually, I am probably going to write my own whitelist module for ULX and instead of kicking the player right away giving them a notice as to why this is happening, so being connected isn't a problem at all.
Honestly, all I need to figure out is how to acquire a table of users in a specific group.
--- End quote ---
There's no simple "get list of users in this group" function. Are you looking to do it for connected players only, or offline players as well?
MrPresident:
For his idea to work properly, it would need offline players as well. But, ever if it were to poll all players in the special group, there is no way to return their list of steam friends unless they were online, or unless you found a way to utilize the web API.
zeaga:
Yes, MrPresident is right, I need to get the offline players as well, which I haven't found a way to do.
I think I may just need to write a web API like you suggested, MrPresident. Thanks for all the help, guys. I really appreciate it.
Edit: Actually, I just realized I can easily keep a simple table of greenlisted members, so I won't actually need ULX for the greenlist part of this script. Again, thanks for the help, guys, and please keep up the great work. I can't live without Ulysses Mod.
I do have one more question, though. How does XGUI get a list of players in a group? I looked through the code, and maybe it's just a tad advanced for me, or I can't seem to find out.
Stickly Man!:
XGUI uses the serverside ULib.ucl.users table, then sends that data to users that have access to xgui_managegroups. That data is stored on the client in the xgui.data.users table.
zeaga:
So I could access the xgui.data.users table on the client's side easily, then, yes?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version