@here notifies all non-idle users currently online.
@everyone notifies all users, even if they are offline.
If you can't mention @everyone or @here in a server, then the server owner likely hasn't given you permission to do so. Server owners can enable or disable the option for specific user roles in their server settings.
To set permissions on a server, click the small arrow next to the server name.

Open Server Settings -> Roles, then click a role to customize that role's permissions.

It's worth noting that users can suppress @everyone and @here notifications on a per-server basis in their notification settings. See How do I stop @everyone mentions from select servers? for more information.
