Jump to content

Recommended Posts

Posted

πŸŽ„ XMAS Sky Manager Day/Night v2.0

Automatic day/night sky rotation plugin for CS 1.6 servers


πŸ“– Description

XMAS Sky Manager Day/Night is an AMX Mod X plugin that automatically changes your server's skybox based on real-time hours. Set different skies for day and night, configure the transition hours, and let the plugin handle the rest!

✨ Features

  • 🌀️ Separate day and night skies - Configure different skyboxes for daytime and nighttime
  • ⏰ Customizable schedule - Set exact hours when day/night transitions occur
  • πŸ”„ Automatic switching - Sky changes automatically every 60 seconds based on server time
  • πŸ“ Detailed logging - All sky changes are logged in AMX logs
  • 🎨 No downloads required - Uses built-in CS 1.6 skyboxes
  • βš™οΈ Easy configuration - Simple INI file with clear documentation
  • πŸš€ No map restart needed - Sky changes dynamically without changing maps

πŸ“₯ Installation

  1. Compile the plugin:

    • Upload xmas_sky_manager.sma to your web compiler or use AMX Mod X Studio
    • Download the compiled .amxx file
  2. Upload the plugin:

    • Place xmas_sky_manager.amxx in cstrike/addons/amxmodx/plugins/
  3. Enable the plugin:

    • Open cstrike/addons/amxmodx/configs/plugins.ini
    • Add this line: xmas_sky_manager.amxx
  4. Restart your server or change map

  5. Configure (optional):

    • Edit cstrike/addons/amxmodx/configs/sky_config.ini
    • The file is auto-created with default settings on first run

βš™οΈ Configuration

The plugin creates sky_config.ini in your configs folder with these settings:

; Sky to use during daytime
day_sky snow

; Sky to use during nighttime
night_sky space

; Hour when day starts (0-23, default: 7 = 7:00 AM)
day_start_hour 7

; Hour when night starts (0-23, default: 18 = 6:00 PM)
night_start_hour 18

Default Schedule

  • 07:00 - 18:00 (7 AM - 6 PM) = snow sky
  • 18:00 - 07:00 (6 PM - 7 AM) = space sky

🎨 Available Skyboxes

All these skyboxes are built into CS 1.6 - no additional downloads required!

🌞 Recommended for Daytime:

  • snow - Cloudy/snowy sky (DEFAULT)
  • desert - Clear desert sky
  • 2desert - Alternate desert sky
  • morningsnow - Morning with snow

πŸŒ™ Recommended for Nighttime:

  • space - Cosmic space (DEFAULT)
  • drksky - Dark cloudy sky
  • black - Pitch black sky
  • neb1 / neb6 - Colorful nebulas

🎭 Other Options:

  • cliff - Rocky cliffs
  • alien1 / alien2 / alien3 - Alien atmospheres
  • xen9 / xen10 - Xen dimensions

πŸ“ Configuration Examples

Example 1: Extended Daylight (6 AM - 10 PM)

day_sky desert
night_sky drksky
day_start_hour 6
night_start_hour 22

Example 2: Standard Business Hours (8 AM - 8 PM)

day_sky snow
night_sky space
day_start_hour 8
night_start_hour 20

Example 3: Early Bird Schedule (5 AM - 11 PM)

day_sky morningsnow
night_sky neb6
day_start_hour 5
night_start_hour 23

Example 4: Always Night Theme

day_sky drksky
night_sky space
day_start_hour 0
night_start_hour 0

πŸ”§ How It Works

  1. On server start: Plugin reads sky_config.ini and applies the appropriate sky
  2. Every 60 seconds: Plugin checks current server time
  3. If time changed: Automatically switches between day/night sky
  4. Logging: Each sky change is recorded in AMX logs with timestamp

Time Format

  • Uses 24-hour format (0-23)
  • Based on server's local time
  • Hour 7 = 7:00 AM, Hour 18 = 6:00 PM

πŸ“Š Server Requirements

  • βœ… AMX Mod X 1.8.2 or higher
  • βœ… Counter-Strike 1.6
  • βœ… No additional files or dependencies

πŸ› Troubleshooting

Sky doesn't change

  • Check that the plugin is loaded: amx_plugins in console
  • Verify configuration file exists: configs/sky_config.ini
  • Check AMX logs for errors: logs/L[date].log

Sky changes but looks wrong

  • Ensure sky names are spelled correctly (case-sensitive)
  • Verify you're using valid CS 1.6 skybox names
  • Check if custom skyboxes are properly installed (if using custom ones)

Changes don't apply immediately

  • Sky updates every 60 seconds, wait a moment
  • Or change map/restart server for instant apply
  • Check if hours are set correctly (0-23 range)

πŸ“œ Changelog

Version 2.0

  • ✨ Added day/night sky rotation
  • ⏰ Configurable transition hours
  • πŸ“ Enhanced logging system
  • 🌍 Full English documentation
  • πŸ”„ Automatic sky switching without map restart

Version 1.1

  • 🎯 Initial release
  • 🌀️ Single sky configuration

πŸ‘¨β€πŸ’» Credits

Author: alex - steams.ro
Version: 2.0
License: Free to use and modify


πŸ’¬ Support

For issues, suggestions, or questions:

  • Check the troubleshooting section above
  • Review configuration examples
  • Verify AMX logs for detailed error messages

πŸ“Œ Quick Start Guide

  1. Install plugin β†’ plugins/xmas_sky_manager.amxx
  2. Add to plugins.ini
  3. Restart server (config file auto-creates)
  4. Edit configs/sky_config.ini (optional)
  5. Enjoy automatic day/night skies! πŸŒ…

Enjoy dynamic skies on your server! ☁️✨

Β 

xmas_sky_manager.amxx xmas_sky_manager.sma

×
×
  • Create New...