Jam and I were talking about this on steam and we decided that it would be a good idea for there to be a way to easily determine if a player is in a group that is in a higher level group that the one you pass it.
This would be a very effective way to determine if a user is in a registered group, rather than just in the user default group.
Considering everyone on the server is in the 'user' group, trying to find out if a user is in that group only is a bit tricky seeing as you can't use IsUserGroup("user") because they would return true always.
Right now, I can determine who these users are, but it is a bit tricky and hacky at best because I have to do something like:
if !ply:IsUserGroup("member") and !ply:IsUserGroup("vip") and !ply:IsUserGroup("gold") and !ply:IsUserGroup("platinum") and !ply:IsAdmin() then
This user is not in any group
end
This works, but it would really only work on my server.
However, since all users return true for IsUserGroup("user") it would be useful to have a way to determine if a player was ONLY in this group or if a player was NOT only in that group.
This would make creating modules and functions limited to people who are in a group (since everyone has different group setups, my method wouldn't be too easy to make global) or denying certain things to people who are not in any groups besides user.
I know this might be confusing, I confused myself half way through writing this.. lol =)