## Key Features
1. **Automatic Music Playback**
- Plays random music tracks at configurable intervals
- Avoids repeating the same song consecutively
- Plays welcome music when players join the server
- Automatically plays music when a new map starts
2. **Player Control**
- Players can enable/disable music with chat commands (`/mp3on`, `/mp3off`)
- Console commands also available (`mp3on`, `mp3off`)
- Individual player preferences are remembered during their session
3. **Admin Features**
- Admins can reload the music list with `amx_reload_music` command
- Music can be globally enabled/disabled via CVars
4. **Configuration Options**
- Music enabled/disabled: `music_enabled` (default: 1)
- Playback interval: `music_interval` (default: 90 seconds)
- Music list configurable via `configs/music_list.cfg`
5. **User-Friendly Notifications**
- Periodic reminders about music commands
- Colored chat messages for all notifications
- Confirmation messages when music is enabled/disabled
## Technical Implementation
- **Optimized for Respawn & CSDM Servers**
- Designed to work seamlessly with the fast-paced nature of respawn/deathmatch gameplay
- Handles continuous player connections and disconnections efficiently
- **File Management**
- Automatically loads music files from a configuration file
- Precaches all music files during map initialization
- Supports MP3 format using the CS 1.6 MP3 player
- **Task Management**
- Uses AMX Mod X task system for timed events
- Properly cleans up tasks when players disconnect
- Handles map changes gracefully
- **Dependencies**
- Requires AMX Mod X
- Uses additional modules: amxmisc, fakemeta, colorchat
## Usage Instructions
1. **For Players**
- Type `/mp3off` or `/music off` in chat to disable music
- Type `/mp3on` or `/music on` in chat to enable music
- Alternatively, use console commands `mp3on` and `mp3off`
2. **For Admins**
- Configure music list in `configs/music_list.cfg`
- Set `music_enabled` to 1 or 0 to enable/disable music globally
- Adjust `music_interval` to change the time between songs
- Use `amx_reload_music` to reload the music list after changes
The plugin is designed to enhance the gaming experience on Respawn & CSDM servers while giving players full control over their audio preferences.