View Single Post
Plugin Info:     Modification:          Category:          Approver:   Hawk552 (427)
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 03-27-2008 , 13:19   Timeconfigs V1.1
Reply With Quote #1

Timeconfigs V1.1 new



Description
This plugin allows you to start configs over a special time. With this plugin you can easily realize mapcycles over night or other maps at day as over night...


CVAR's
tc_execute 1/0 Default (0) on/off - Execute the config instant


Installation
Code:
/* * *     Timeconfigs V1.1 by DA * *      Create a sconfigs folder in your config folder and place your configs there. *     Create timeconfigs.cfg in your config folder and copy this in it. *     *     stime=hh:mm               (23:00,18:45,13:22)                                                - The time who should the config start *     etime=hh:mm               (24:00,19:00,14:22)                                                - The time who should the config end *     sday=day/date (montg/day) (monday,tuesday...,all)(08/25, 03/14, 12/24)     - The day when the config to be loaded *     eday=day/date (month/day) (monday,tuesday...,all)(08/25, 03/14, 12/24)     - The day when the config to be unloaded *     sconfig=sconfig.cfg     (hellocitty.cfg,config_monday.cfg,timeconfig.cfg)    - The config who should be load *     econfig=server.cfg            (server.cfg, blablubb.cfg)                    - The config who should be load if the date or the time ist over *     * *     ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ *     Example1: The new config starts Today at 23:00 and stops on the next Day at 08:00 o'clock. After 08:00 the new config is "server.cfg". * *     stime=23:00 *     etime=08:00 *     sday=all *     eday=all *     sconfig=tuesday_config.cfg *     econfig=server.cfg *      *     Example2: The new config starts Today at 18:00 and stops on August, 25th at 20:00 o'clock. After 20:00 the new config is "server.cfg" * *     stime=18:00 *     etime=20:00 *     sday=all *     eday=08/25 *     sconfig=mydaylieconfig.cfg *     econfig=server.cfg * *     Example3: The new config starts Today 2 minutes after this plugin starts and stops on Tuesday at 08:00 o'clock. After 08:00 o'clock the new config is the old config before this. * *     etime=08:00 *     eday=Tuesday *     sconfig=mynewconfig.cfg *     ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- *     CVAR's: *     tc_execute 1/0            Default (0)  on/off - Execute the Config instant * * *     Tested on homemachine and Linux Root. Amxx 1.8.1.3679 and Metamod v1.9p32 *     *     NOTE: econfigs goes to configsfolder/sconfigs/ * *     Thanks goes to Striker, x0R, JustinHoMi, BigBaller * */

NOTE: I have add a rar file where are some examples. If it's to hard for you download this package.
Feel free to ask me if you need help.

Modules required
#include <amxmodx>
#include <amxmisc>

Special thanks
Special thanks goes to Striker for the Idea and to x0R, JustinHoMi, BigBaller.
Attached Files
File Type: sma Get Plugin or Get Source (timeconfigs.sma - 2804 views - 6.5 KB)
File Type: rar timeconfigs.rar (8.7 KB, 1781 views)
__________________

Last edited by DA; 03-30-2008 at 11:02. Reason: New Version
DA is offline