G... I wonder what happens if you combine this
Code:
if (!(get_user_flags(id)&ADMIN_KICK))
with this
and possibly this
You seem pretty stupid since you've used the two first peices of code already.
The third can be found in the .inc's, other plugins, et.c.