How to send message or alert

Hi,

I am writing a plugin that looks for a flag in a database. If that flag is set I need to send message or alert to the users that have this plugin installed. I need to figure out how to send a message or alert to a user.

Thanks!!