counterstrike-cn

Scoreboard

TAB-style scoreboard with team sections, player stats, and ping.

Scoreboard

The classic CS 1.6 scoreboard that appears when you hold TAB — server info header, team sections with player stats, and color-coded names.

Interactive Preview
dust2 24/7 | Competitive
de_dust21:23
Counter-Terrorists8
PlayerStatusScoreDeathsPing
n0thing241828
shroud201535
Hiko💀182042
Terrorists6
PlayerStatusScoreDeathsPing
f0rest221655
GeT_RiGhT★ BOMB191748
friberg💀152162

Usage

import { Scoreboard } from "@/components/ui/cscn/scoreboard";

<Scoreboard
  serverName="dust2 24/7 | Competitive"
  mapName="de_dust2"
  ctScore={8}
  tScore={6}
  timeLeft="1:23"
  ctPlayers={[
    { name: "n0thing", kills: 22, deaths: 14, ping: 32, alive: true },
    { name: "Hiko", kills: 18, deaths: 16, ping: 45, alive: false },
    { name: "shroud", kills: 15, deaths: 12, ping: 28, alive: true },
  ]}
  tPlayers={[
    { name: "f0rest", kills: 24, deaths: 13, ping: 55, alive: true },
    { name: "GeT_RiGhT", kills: 20, deaths: 15, ping: 48, alive: true, hasBomb: true },
    { name: "friberg", kills: 12, deaths: 18, ping: 62, alive: false },
  ]}
/>

Props

PropTypeDefaultDescription
serverNamestring"Counter-Strike Server"Server hostname
mapNamestring"de_dust2"Current map
ctScorenumberCT round wins
tScorenumberT round wins
ctPlayersPlayer[]CT player list
tPlayersPlayer[]T player list
timeLeftstring"1:45"Round time remaining

Player type

interface Player {
  name: string;
  kills: number;
  deaths: number;
  ping: number;
  alive?: boolean;
  hasBomb?: boolean;
}