alex Posted November 9, 2025 Report Posted November 9, 2025 ๐ Description Plugin for Counter-Strike 1.6 that allows players to launch fireworks at the end of winning rounds. Fireworks can be launched automatically or manually by pressing a button, providing a fun way to celebrate team victory. ๐ฆ Installation 1. Required Files Place the compiled plugin in: cstrike/addons/amxmodx/plugins/ 2. Plugin Activation Add to addons/amxmodx/configs/plugins.ini: amx_fireworks.amxx 3. Translation File Place amx_fireworks.txt in: cstrike/addons/amxmodx/data/lang/ 4. Required Sprites The plugin uses the following sprites (included in CS 1.6): sprites/3dmflared.spr - firework model sprites/laserbeam.spr - colored trail sprites/fireworks.spr - explosion effect โ๏ธ Configuration Method 1: Dedicated File (Recommended) Create addons/amxmodx/configs/amx_fireworks.cfg: // ======================================== // FIREWORKS PLUGIN - CONFIGURATION // ======================================== // Enable/Disable plugin // 0 = Disabled | 1 = Enabled amx_fireworks_enable "1" // Fireworks for admins only // 0 = Everyone | 1 = Admins only amx_fireworks_admin_only "0" // Required admin flag (if admin_only = 1) // Available flags: a-z (example: "b" = reservation flag) amx_fireworks_admin_flag "b" // Fireworks launch type // 0 = Automatic launch (every 0.6 seconds) // 1 = E button (IN_USE) // 2 = Attack/shoot button (IN_ATTACK) - RECOMMENDED amx_fireworks_type "2" // Chat messages // 0 = Disabled | 1 = Enabled amx_fireworks_message_enable "1" Then add to addons/amxmodx/configs/amxx.cfg: exec amx_fireworks.cfg Method 2: Direct in amxx.cfg Add the CVars directly at the end of addons/amxmodx/configs/amxx.cfg ๐ฎ How It Works When Does It Activate? Fireworks become available when a round ends Only the winning team can launch fireworks Automatically disabled at the start of the next round Launch Modes Mode 0 - Automatic amx_fireworks_type "0" Fireworks launch automatically from player's position Interval: 0.6 seconds between each firework Players don't need to do anything Mode 1 - E Button (IN_USE) amx_fireworks_type "1" Players press E key to launch Firework launches in the direction player is looking Full control over launch timing Mode 2 - Attack (IN_ATTACK) โญ RECOMMENDED amx_fireworks_type "2" Players shoot (left click) to launch Firework launches in the direction player is looking Most intuitive usage mode ๐จ Visual Effects Firework Sprite: 3dmflared.spr (glowing orb) Speed: 700 units/second Trail: Random colored laser (random RGB) Trail Duration: 0.9 seconds Explosion Sprite: fireworks.spr Position: +200 units above impact point Random Offset: ยฑ5 units on X/Y axis Size: 15 Brightness: 200 ๐ฅ Admin Restrictions Enable Restriction amx_fireworks_admin_only "1" Set Flag amx_fireworks_admin_flag "b" Common Flags: a - immunity (kick/ban protection) b - reservation (reserved slot) c - amx_kick command d - amx_ban command e - amx_slay command z - user (basic user access) Example: For admins with full access, use flag "a" or "z" ๐ฌ Chat Messages Displayed Messages: On Activation (round end): [Fireworks] Fireworks are now available! [Fireworks] Press IN_ATTACK to launch! (or E (IN_USE) for mode 1) On Deactivation (round start): [Fireworks] Fireworks have been disabled! Disable Messages: amx_fireworks_message_enable "0" ๐ง Admin Commands (Console) Change Settings Live: amx_cvar amx_fireworks_enable 1 amx_cvar amx_fireworks_admin_only 0 amx_cvar amx_fireworks_type 2 amx_cvar amx_fireworks_message_enable 1 Check Current Settings: amx_cvar amx_fireworks_enable ๐ Default Values If you DON'T configure CVars, the plugin uses: CVar Value Description amx_fireworks_enable 1 Enabled amx_fireworks_admin_only 0 Everyone amx_fireworks_admin_flag "b" Reservation flag amx_fireworks_type 2 Attack launch amx_fireworks_message_enable 1 Messages enabled ๐ ๏ธ Technical Requirements Required AMXX Modules: amxmodx - Core module fakemeta - Entity manipulation Check Modules: In server console: amxx modules Should show: [AMXX] Module: fakemeta loaded AMXX Version: Minimum: AMX Mod X 1.8.2 Recommended: AMX Mod X 1.8.3+ (for client_print_color) ๐ Troubleshooting Fireworks Don't Appear โ Check: Plugin is in plugins.ini and is activated amx_fireworks_enable is set to 1 fakemeta module is loaded Sprites exist in sprites/ folder Only Admins Can Use (Unwanted) โ Solution: amx_cvar amx_fireworks_admin_only 0 Messages Don't Appear โ Check: amx_fireworks_message_enable "1" amx_fireworks.txt file exists in data/lang/ Fireworks Won't Launch with Button โ Check: Are you on the winning team? Has the round ended? Does the type setting (amx_fireworks_type) match the button pressed? ๐ Performance Server Impact: Minimal - uses native CS 1.6 sprites Temporary entities - automatically deleted after impact Optimized - autorelease interval prevents spam Recommendations: For servers with 20+ players: use type "1" or "2" (manual) For small servers: type "0" (automatic) works perfectly ๐ License and Credits Author: [P]erfec[T] cr[@]s[H] Version: 1.3 Compatibility: Counter-Strike 1.6 / AMX Mod X ๐ฏ Recommended Configurations Maximum Fun (Public Servers): amx_fireworks_enable "1" amx_fireworks_admin_only "0" amx_fireworks_type "2" // Attack launch amx_fireworks_message_enable "1" Automatic Show: amx_fireworks_enable "1" amx_fireworks_admin_only "0" amx_fireworks_type "0" // Automatic launch amx_fireworks_message_enable "1" VIP/Premium Only: amx_fireworks_enable "1" amx_fireworks_admin_only "1" // Admins only amx_fireworks_admin_flag "b" // Reservation flag amx_fireworks_type "2" amx_fireworks_message_enable "1" ๐ Support For questions or issues: Check this documentation Test with default settings Check logs: addons/amxmodx/logs/ Example to check if plugin is active: amxx list Should show: amx_fireworks.amxx ๐ Have fun with the fireworks! ๐ round end fireworks.zip
Recommended Posts