Emp, to be honest, I did not understand you clearly.. Is there any easier method of checking if the user has either ADMIN_BAN or ADMIN_LEVEL_H or ADMIN_LEVEL_G.. Can't we do it using the get_user_flags function? How would the if statement look like?
This if statement didn't really work:
PHP Code:
new uflags = get_user_flags(id)
if (uflags != ADMIN_BAN & uflags != ADMIN_LEVEL_G & uflags != ADMIN_LEVEL_H)
return PLUGIN_HANDLED