View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-31-2024 , 20:15   Re: Setting access flags for all players
Reply With Quote #8

Quote:
Originally Posted by Natsheh View Post
I did understand the question he wants to give every player a unique flag which is not possible due to the limitations of flags, what he doesn't know about is userid, userid is unique for every player
I still don't think you understand his ask.

"How can I make sure that all players have a different access flag when entering and not the standard one for ordinary players?"

To me this reads as how do I give regular/non-admin players a different set of flags. Non-admin players by default get amx_default_access flags, and using set_user_flags(), he can apply whatever he wants to individual players.

This is interpreting his ask very literally.
PHP Code:
public client_authorizedid )
{
    new const 
szFlags[][] = 
    {
        
"abc",
        
"def",
        
"ghi",
        
"jkl"
    
};
    
    
//remove_user_flags( id , ... );
    
    
set_user_flagsid read_flagsszFlagsrandomsizeofszFlags ) ) ] ) );

__________________

Last edited by Bugsy; 03-31-2024 at 20:25.
Bugsy is offline