Before I explain my problem, I'd like to apologize for any and all mistakes I may make. I've been lurking on the forums for close to two years now, but I've never actually posted let alone ask for help before.
Anyway, I am trying to write a script built onto
UGate that checks to see if the connecting player is friends with anyone in or inherited from a group (currently assigned the placeholder name of "greenlist") and, if so, add them to the whitelist. In other words, assign them to the whitelist group if they're Steam friends with players belonging to the greenlist group.
The trouble is, I'm not sure how to go about checking if a player is friends with anyone in a group, because I don't know how to check for every player in a group without keeping a local table I need to constantly update whenever I "greenlist" a player.
I've searched the forums, checked the FAQs, and looked through the docs, but I am still lost.
If it matters, I need this because I run a Trouble in Terrorist Town server as well as a Prop Hunt server, but I don't like randoms joining the prop hunt server, and have no time to add every single member of my group of 150 some-odd members.
Any help is greatly appreciated.
Thanks!