If you ever use a cvar (or any variable) that holds more than 1 flag, your code will still return true when the player has only 1 of the flags, any combination of, or all flags.
Here's an example, see my comments.
PHP Code:
public check_flags(id)
{
new iFlags;
iFlags = read_flags( get_pcvar_string( flag , aflags , charsmax( aflags ) ) );
//True only if player has ALL flags contained in aflags cvar.
if( ( get_user_flags( id ) & iFlags ) == iFlags );
{
// my code
}
//True if player has AT LEAST ONE (or some, or all) of the flags contained in aflags cvar.
if( get_user_flags( id ) & iFlags );
{
// my code
}
}
__________________