This works for me:
add_action(\'admin_head\', \'admin_only_warnings\');
function admin_only_warnings() {
if(is_admin() && !current_user_can(\'administrator\') ) {
echo \'<style>
<!-- add your classes/ids below -->
.warning, .error, .updated {display:none !important;}
}
</style>\';
}
}