Raised This Month: $51 Target: $400
 12% 

need to schedule plugins on the server....


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hoboman
Senior Member
Join Date: Jul 2007
Old 02-11-2008 , 15:20   need to schedule plugins on the server....
Reply With Quote #1

Basically I am trying to make it so the plugins get auto changed for each day of the week:
enable the hats.amxx plugin on moday
disable the hats.amxx plugin on tuesday
enable the f_ultimate_sounds.amxx and disable the ultimate_sounds.amxx on wednesday
enable the ultimate_sounds.amxx and disable the ultimate_sounds.amxx on thursday
and so on....

To do this I am using Drak's "Timed Commands" ( http://forums.alliedmods.net/showthread.php?p=449902 ) and making it amx_pausecfg stop/enable plugins for every given day of the month; however, this doesn't work too well since the connecting players still have to download the files that are precached by the stopped plugins and I can still access the cvars of the stopped plugins. So i have come to the conclussion that stopping/pausing a plugin isn't the same as commenting it out in the plugins.ini. Maybe someone can clear up for me what stopping and pausing a plugin actually does.
At this point I am thinking of attempting to modify Drak's plugin to execute a different function for every day of the week that will rewrite the plugins.ini with the plugins that I want to run on that day, but that is kind of a last resort. There has to be a better way....any ideas?
__________________
hoboman is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 02-11-2008 , 16:13   Re: need to schedule plugins on the server....
Reply With Quote #2

I dont think theirs any way around the precach deal you got goin on. lol
(Their gonna have to dl them regardless)

Besides that, have you tried the Task Scheduler by Justin?
__________________
bmann_420 is offline
hoboman
Senior Member
Join Date: Jul 2007
Old 02-11-2008 , 17:58   Re: need to schedule plugins on the server....
Reply With Quote #3

Quote:
Originally Posted by bmann_420 View Post
I dont think theirs any way around the precach deal you got goin on. lol
(Their gonna have to dl them regardless)

Besides that, have you tried the Task Scheduler by Justin?
errrr....did you read what I wrote? Well maybe you did, but I suck at explaining...

There is a way to get around the precache, but then I would have to modify Drak's plugin so it uses the write_file() native to overwrite the "plugins.ini" everyday to include the plugins that I wanna run that day and comment the ones that I don't. Considering I have never written a plugin in my life ( although i am learning now ) it is gonna be hard, so I was wondering if there was another way.

p.s. the Task Scheduler by Justin suckz0rs
__________________
hoboman is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 02-11-2008 , 22:37   Re: need to schedule plugins on the server....
Reply With Quote #4

Well thats what I was saying. I dont think their is any other way than creating a plugin for it.
__________________
bmann_420 is offline
Reply



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 19:33.


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