counterstrike-cn

MOTD

Message of the Day server panel.

MOTD

The "Message of the Day" panel shown after connecting to a server — displays server rules, welcome messages, or custom content in a scrollable panel.

Interactive Preview
dust2 24/7 | Competitive — Message of the Day
Welcome to our server! Rules: - No cheating or exploiting - English only in voice chat - Respect all players - No team-killing on purpose - Have fun! Server admins: n0thing, shroud, f0rest Discord: discord.gg/example Visit our website: example.com

Usage

import { Motd } from "@/components/ui/cscn/motd";

<Motd
  serverName="dust2 24/7 | Competitive"
  content={`Welcome to dust2 24/7!

Server Rules:
- No cheating (VAC + admin monitored)
- No team killing
- No spawn camping
- English only in voice chat
- Have fun!

Server powered by HLDS
Visit our website: example.com`}
  onClose={() => console.log("MOTD closed")}
/>

Props

PropTypeDefaultDescription
serverNamestring"Counter-Strike Server"Server name in title bar
contentstringMOTD text content
onClose() => voidOK button callback

On this page