A Counter-Strike 2 plugin that displays a real-time spectator list, allowing players to toggle and customize the display of spectators watching them. Integrated with dynamic command registration and multi-language support.
- Toggle the spectator list on or off using !css_spectatorlist or !css_speclist.
- Customize the display to show or hide spectator names via !css_spectatorlistedit or !izleyiciayar.
- Automatically creates a default configuration file (cs2-spectatorlist.json) if none exists.
- Supports configurable chat prefix, interval, and command aliases via JSON.
- Displays spectator count or names in the game UI with a timer-based update.
- Multi-language support with localization files (English, Turkish, and more).
The plugin uses a JSON configuration file (cs2-spectatorlist.json) with the following options:
- ChatPrefix: The chat prefix for plugin messages (default: "[Spectatorlist]").
- ChatInterval: The interval (in seconds) for updating the spectator list (default: 3.0 seconds).
- Commands: List of commands to toggle the spectator list (default: ["css_spectatorlist", "css_speclist"]).
- SettingsCommands: List of commands to open the settings menu (default: ["css_spectatorlistedit", "css_speclistedit"]).
Example Config File:
json{
"ChatPrefix": "[Spectatorlist]",
"ChatInterval": 3.0,
"Commands": ["css_spectatorlist", "css_speclist"],
"SettingsCommands": ["css_spectatorlistedit", "css_speclistedit"]
}!spectatorlistor!speclist: Toggle the spectator list display on or off.!spectatorlisteditor!speclistedit: Open the settings menu to show or hide spectator names.
-
The plugin supports multiple languages via JSON files in the lang/ directory. Supported languages:
-
English (
en.json) -
Turkish (
tr.json) -
(Add more languages as needed, e.g., Russian, German)
-
Each file contains key-value pairs for in-game messages, such as settings prompts, spectator status, and errors.
- PoncikMarket (Discord:
poncikmarket)