What is the best way to display custom notice to users from plugin

I am working on a plugin that prevents users from creating a new topic until some time after they just create a new topic. Each user has a different wait time so the notice won’t be generic and will be different for each user. What is the best way to do that from a plugin and how?

I like how these alerts like, is there a way to create these alerts for a user:

Right now I am thinking of using the top-notices outlet override from the plugin with if condition. Wondering if there is a better way.