Raised This Month: $193 Target: $400
 48% 

Timeconfigs V1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        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 - 1890 views - 6.5 KB)
File Type: rar timeconfigs.rar (8.7 KB, 1592 views)
__________________

Last edited by DA; 03-30-2008 at 11:02. Reason: New Version
DA is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 03-30-2008 , 14:04   Re: Timeconfigs V1.1
Reply With Quote #2

Plugin is updated. You can now run configs over days, weeks and month. I hope it's a little bit usefull.
__________________
DA is offline
dangerix
Senior Member
Join Date: Aug 2007
Location: Germany
Old 04-07-2008 , 08:39   Re: Timeconfigs V1.1
Reply With Quote #3

Can you update the plugin, so one can use any console command, not only "exec example.cfg"?


I'd really appreciate it, since I've been waiting for a plugin like yours for quite some time now.
However, I could create configs with the CVARs I'd like to execute.


Anyways, I've really been waiting for a good scheduler. Good work, gonna test it!
__________________
dangerix is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 04-07-2008 , 08:47   Re: Timeconfigs V1.1
Reply With Quote #4

Quote:
Originally Posted by dangerix View Post
Can you update the plugin, so one can use any console command, not only "exec example.cfg"?
it!
hmm. I really don't know what you mean?
Can you explain it a bit more?
__________________
DA is offline
dangerix
Senior Member
Join Date: Aug 2007
Location: Germany
Old 04-07-2008 , 09:44   Re: Timeconfigs V1.1
Reply With Quote #5

For example, I wish to run my server with mp_timelimit 30 all day long, but in the night. In the night I'd rather like to use mp_timelimit 15.
I just want to execute a single console command at a specific time, not a whole config. Of course I could simply execute a config with your plugin, but that way I'd have to put a LOT configs in the server's cstrike folder - just for executing a single command at a specific time.
Code:
stime=24:00
etime=06:00
sday=all
eday=all
sconfig=mp_timelimit 15
econfig=mp_timelimit 30
__________________
dangerix is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 04-07-2008 , 10:47   Re: Timeconfigs V1.1
Reply With Quote #6

Edit: hmm. I think I will add this with the new version...
__________________

Last edited by DA; 04-07-2008 at 10:53.
DA is offline
rory535
Member
Join Date: Aug 2005
Old 04-10-2008 , 21:27   Re: Timeconfigs V1.1
Reply With Quote #7

Im a little confused on the folders.
If my sconfigs file is "daylight.cfg", that goes in my configs/sconfigs/ folder.
If my econfigs file is "server.cfg", where do I place that file? Same folder as above?
Thanks
rory535 is offline
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 04-11-2008 , 07:54   Re: Timeconfigs V1.1
Reply With Quote #8

Yes. Read my first post.
__________________
DA is offline
rory535
Member
Join Date: Aug 2005
Old 04-11-2008 , 10:36   Re: Timeconfigs V1.1
Reply With Quote #9

Ok, it doesnt seem to kick off my configs when I restart the server.

this is my timeconfigs.cfg
Code:
stime=01:00
etime=18:00
sday=all
eday=all
sconfig=serverday.cfg
econfig=server.cfg
I have a /configs/sconfigs folder. In this folder is my serverday.cfg and server.cfg file.

My serverday.cfg file is basically a copy of my normal server.cfg file with the additional line

Code:
mapcyclefile      "mapcycleday.txt"
My purpose is just to run a different map during the day.

When I restart the server, it starts the normal "mapcycle.txt" file and NOT the mapcycelday file.
rory535 is offline
deejay87
Senior Member
Join Date: Apr 2004
Location: Pays du Glaude - France
Old 04-11-2008 , 10:55   Re: Timeconfigs V1.1
Reply With Quote #10

héhé i have to read this more than 1 time , cause it's confused for me too with the folder
If i understand :
sconfigs = xxx.cfg (you take the configs in the folder sconfigs)
econfig = xxx.cfg (you take the .cfg on the base of game cstrike or czero)
True ?
__________________
deejay87 is offline
Send a message via MSN to deejay87 Send a message via Skype™ to deejay87
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:28.


Powered by vBulletin®
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Theme made by Freecode