It works. Just that it's different than what you ended up using. The one that I posted allows them to have other flags but must have, at the very least, both these flags.
The one you ended up using will only return true if and only if the player has only those two flags. Is that what you wanted? When you stated in your first post that you wanted to specifically exclude flag "h" it made it seem like you could have other flags but just not "h". (Granted, mine doesn't check for the absence of any particular flags)
i guess thats what he wanted
Quote:
Originally Posted by EDUTz
Code:
public client_putinserver(id) {
new flags = get_user_flags(id)
if (flags & (ADMIN_SLAY | ADMIN_MAP) && flags ^ ADMIN_CHAT) {
server_cmd(...)
}
}
Doesn't work
it affects "ef" and "bcefjimr" and "bcdtefhijr" and so on ...
I need to work just on "ef" flags ...