PHP Code:
#include <amxmodx>
const abcd = ADMIN_IMMUNITY|ADMIN_RESERVATION|ADMIN_KICK|ADMIN_BAN
const abcdef = abcd|ADMIN_SLAY|ADMIN_MAP
public test(id)
{
switch( get_user_flags(id) )
{
case abcd:
{
//..
}
case abcdef:
{
//...
}
}
}
case abcdef won't match if user have another flag like flag "g" for example, so this is a really bad idea to use this.
Use rather has_flags or has_all_flags stocks from amxmisc + if / else statements.
__________________