I will add that I have tried several variations of the following code to no avail:
Code:
char groupName[] = "VIP"; // I have a group named VIP in admin_groups I want to set the user to.
AdminId admin = CreateAdmin(groupName);
GroupId grpId = FindAdmGroup(groupName);
int flags = grpId.GetFlags();
AdminFlag adminflags;
BitToFlag(flags, adminflags);
admin.SetFlag(adminflags, true);
SetUserAdmin(client, admin, true);
My whole goal is to give the user VIP instantly, so other plugins / perks can kick in.