I think you’ll need to combine the save_post hook
(codex link here) and the admin_notices
hook (codex link here). I know link only answers are normally not acceptable, but I think you should start with reading some codex stuff :-). Hope this helps!