
   /* AMX Mod script.
   *
   * Rotating Mapcycle
   *  by JustinHoMi
   *
   */
   #include <amxmod>
   public load_mapcycle()
   {
      new today_str[8], cmd[48]
      get_time("%H",today_str,8)
      new today = strtonum(today_str)
      if ((today >= 0) && (today < 9))
         format(cmd,48,"mapcyclefile
   addons/amx/mapcycles/morning.cfg",today)
      else if ((today >= 9) && (today < 18))
         format(cmd,48,"mapcyclefile addons/amx/mapcycles/day.cfg",today)
      else if (today >= 18)
         format(cmd,48,"mapcyclefile
   addons/amx/mapcycles/evening.cfg",today)
      server_cmd(cmd)
      return PLUGIN_HANDLED
   }
   public plugin_init()
   {
      register_plugin("Rotating Mapcycle","0.1","JustinHoMi")
      load_mapcycle()
      return PLUGIN_CONTINUE
   }
