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

[CS:GO] Day Specific Plugin Enabling


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SOBgaming
Senior Member
Join Date: Jul 2015
Old 03-08-2019 , 14:12   [CS:GO] Day Specific Plugin Enabling
Reply With Quote #1

I would like to enable some plugins only one day of the week.

Thing is, I can already do something similar with:
https://forums.alliedmods.net/showth...=205962&page=3

But if the map is changed, the said plugins will be enabled/disabled again.

What would be the best way to go about this?
__________________

Last edited by SOBgaming; 03-08-2019 at 14:30.
SOBgaming is offline
CliptonHeist
Senior Member
Join Date: Feb 2016
Old 03-08-2019 , 20:45   Re: [CS:GO] Day Specific Plugin Enabling
Reply With Quote #2

Not sure what you mean by "if the map is changed, the said plugins will be enabled/disabled again." If you move the plugins you want disabled to disabled folder and the plugins you want enabled to plugins folder then map changes won't do anything to them.
CliptonHeist is offline
SOBgaming
Senior Member
Join Date: Jul 2015
Old 03-08-2019 , 21:00   Re: [CS:GO] Day Specific Plugin Enabling
Reply With Quote #3

Quote:
Originally Posted by CliptonHeist View Post
Not sure what you mean by "if the map is changed, the said plugins will be enabled/disabled again." If you move the plugins you want disabled to disabled folder and the plugins you want enabled to plugins folder then map changes won't do anything to them.
But can you move files through sourcemod commands?
__________________
SOBgaming is offline
CliptonHeist
Senior Member
Join Date: Feb 2016
Old 03-08-2019 , 21:05   Re: [CS:GO] Day Specific Plugin Enabling
Reply With Quote #4

Quote:
Originally Posted by SOBgaming View Post
But can you move files through sourcemod commands?
You can do it with the plugin you linked lol
CliptonHeist is offline
SOBgaming
Senior Member
Join Date: Jul 2015
Old 03-08-2019 , 21:14   Re: [CS:GO] Day Specific Plugin Enabling
Reply With Quote #5

Quote:
Originally Posted by CliptonHeist View Post
You can do it with the plugin you linked lol
It will unload it, not move it to the disabled folder if I'm not mistaken?
__________________
SOBgaming is offline
CliptonHeist
Senior Member
Join Date: Feb 2016
Old 03-08-2019 , 21:25   Re: [CS:GO] Day Specific Plugin Enabling
Reply With Quote #6

From the post:
Quote:
A cronjob can execute one of three different command types:

Server console commands
Execute commands on the server console

System commands
Execute commands on the shell with the system2 extension


Player commands
Players on the server will execute a command
With a system command you can do something like this in the cronjobs.txt file:
Code:
// Moves a plugin to the disabled folder every Wednesday
// 0 0 * * 3 system mv "/home/server/csgo/addons/plugins/plugin.smx" "/home/server/csgo/addons/plugins/disabled"
CliptonHeist is offline
SOBgaming
Senior Member
Join Date: Jul 2015
Old 03-09-2019 , 01:19   Re: [CS:GO] Day Specific Plugin Enabling
Reply With Quote #7

Quote:
Originally Posted by CliptonHeist View Post
From the post:


With a system command you can do something like this in the cronjobs.txt file:
Code:
// Moves a plugin to the disabled folder every Wednesday
// 0 0 * * 3 system mv "/home/server/csgo/addons/plugins/plugin.smx" "/home/server/csgo/addons/plugins/disabled"
Awesome, thanks! (:
__________________
SOBgaming is offline
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 21:29.


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