I think you can alter cmd_target, so if the flag is ADMIN_IMMUNITY, you can do the checking yourself. Also,you must edit admin.sma so it can load the admin immunity level from the users.ini file. Then, you can check it in the cmd_target as I mentioned.
After this,recompiling all the plugins should do the job.