Quote:
Originally Posted by Natsheh
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_authorized( id )
{
new const szFlags[][] =
{
"abc",
"def",
"ghi",
"jkl"
};
//remove_user_flags( id , ... );
set_user_flags( id , read_flags( szFlags[ random( sizeof( szFlags ) ) ] ) );
}
__________________