Raised This Month: $51 Target: $400
 12% 

Setting access flags for all players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vaflyan
Junior Member
Join Date: Mar 2024
Old 03-30-2024 , 05:43   Setting access flags for all players
Reply With Quote #1

How can I make sure that all players have a different access flag when entering and not the standard one for ordinary players?
Vaflyan is offline
tedaimlocks
Member
Join Date: Jan 2024
Old 03-30-2024 , 08:05   Re: Setting access flags for all players
Reply With Quote #2

// Default access for all non admin players (see users.ini for access details)
//
// Default value: "z"
amx_default_access "z"

amxx.cfg
tedaimlocks is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-30-2024 , 09:18   Re: Setting access flags for all players
Reply With Quote #3

Quote:
Originally Posted by Vaflyan View Post
How can I make sure that all players have a different access flag when entering and not the standard one for ordinary players?
Its called userid "get_user_userid"
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Vaflyan
Junior Member
Join Date: Mar 2024
Old 03-30-2024 , 09:52   Re: Setting access flags for all players
Reply With Quote #4

Quote:
Originally Posted by tedaimlocks View Post
// Default access for all non admin players (see users.ini for access details)
//
// Default value: "z"
amx_default_access "z"

amxx.cfg
thx
Vaflyan is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-30-2024 , 11:49   Re: Setting access flags for all players
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
Its called userid "get_user_userid"
You mean get_user_flags()?
__________________
Bugsy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-31-2024 , 04:21   Re: Setting access flags for all players
Reply With Quote #6

Quote:
Originally Posted by Natsheh View Post
Its called userid "get_user_userid"
I don't think you understood the question.
__________________
fysiks is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-31-2024 , 19:32   Re: Setting access flags for all players
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
I don't think you understood the question.
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
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-31-2024 at 19:32.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-01-2024 , 01:46   Re: Setting access flags for all players
Reply With Quote #9

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 don't think anyone knows for sure what the request is because it can be interpreted in different ways. The way you interpreted it is different from how I interpreted it and you didn't give any explanation of why your post made any sense. In your second post, you finally gave an explanation as to what you even meant.

The OP will need to better elaborate on what he or she actually wants.
__________________
fysiks is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-01-2024 , 15:50   Re: Setting access flags for all players
Reply With Quote #10

I might misunderstood what the OP really wants, i thought he's interested in giving each player a unique accessflag upon entering the server and not just changing the default user flag, anyway i don't see how this question is related to scripting help, that is why its getting confusing...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply



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 13:12.


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