View Single Post
Samg381
Junior Member
Join Date: May 2023
Old 05-29-2023 , 22:15   Re: [TF2] Updating VIP during match?
Reply With Quote #4

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.

Last edited by Samg381; 05-29-2023 at 22:16.
Samg381 is offline