Raised This Month: $ Target: $400
 0% 

Solved Help about admin flag


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
maclarens
Senior Member
Join Date: Jul 2020
Location: Kz
Old 08-27-2023 , 09:21   Help about admin flag
Reply With Quote #1

Hello!I need players who have the admin flag then the code below is not executed, my code does not work where is the error?


Code:
public void OnClientPutInServer(int client)
{
    if (client && IsClientConnected(client))
    {
        if (!GetAdminFlag(GetUserAdmin(client), Admin_Root))
        {
            SetUserFlagBits(client, ADMFLAG_CUSTOM1);
        }
    }
}
I log in as admin and my flags are all erased except ADMFLAG_CUSTOM1

Last edited by maclarens; 09-13-2023 at 08:42.
maclarens is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode