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

[ANY] Server Crontab


Post New Thread Reply   
 
Thread Tools Display Modes
dubbeh
Senior Member
Join Date: Jul 2007
Old 08-30-2007 , 07:26   Re: Basic Server Crontab
Reply With Quote #11

post removed

got the module based plugin released now ;)
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome

Last edited by dubbeh; 09-01-2007 at 02:01.
dubbeh is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 08-30-2007 , 09:38   Re: Basic Server Crontab
Reply With Quote #12

Ok.. how I have 1 comment and 1 idea:

comment: Why did you make all natives already with a defined value of 0 or nothing?

idea: how about a forward "forward OnCronCall(CronId)"?
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
dubbeh
Senior Member
Join Date: Jul 2007
Old 08-30-2007 , 09:54   Re: Basic Server Crontab
Reply With Quote #13

Quote:
Originally Posted by Nican View Post
Why did you make all natives already with a defined value of 0 or nothing?
I thought thats what the value gets set to if someone does RegisterCronJob() without passing any arguments, then it will default all the values to 0.Think it would be better to set the times to -1, so they're out of range & dont get past the initial tests ;)

Quote:
Originally Posted by Nican View Post
idea: how about a forward "forward OnCronCall(CronId)"?
With this do you mean when the cronjob is about to run then pass this forward with the id
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh is offline
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 08-30-2007 , 10:04   Re: Basic Server Crontab
Reply With Quote #14

1. :O

2. Yes
__________________
http://www.nican132.com
I require reputation!
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
dubbeh
Senior Member
Join Date: Jul 2007
Old 08-30-2007 , 10:12   Re: Basic Server Crontab
Reply With Quote #15

ah cool i thought that was it

I'll get that added now ;)
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 08-30-2007 , 10:43   Re: Basic Server Crontab
Reply With Quote #16

Files updated with OnCronCall forward - allows cron jobs to be skipped if the plugin requests it

edit.
Fixed a couple of small bugs with the global forward
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome

Last edited by dubbeh; 08-30-2007 at 11:00.
dubbeh is offline
Falco
SourceMod Donor
Join Date: Dec 2004
Location: CANADA
Old 08-31-2007 , 01:17   Re: Basic Server Crontab
Reply With Quote #17

Can this be done?

Cron a gungame on Thursday all day then return back to regular mapcycle
__________________
[DmZ|EPSILON CSS 70.75.139.92:27016
[DmZ|EPSILON GG 70.75.167.30:27015
[DmZ|EPSILON CS:GO Classic Casual 70.75.139.92:27013
[DmZ|EPSILON CS:GO Demolition 70.75.139.92:27014
[DmZ|EPSILON BF3 69.46.43.221:25203 (8-slot) Practice Server
www.dmzepsilon.ca
----------------------
Falco is offline
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 08-31-2007 , 02:21   Re: Basic Server Crontab
Reply With Quote #18

gungame has an enable/disable cvar does it not?

Now this means gungame will always be loaded, but otherwise...yeah that'd work...the next best thing is setting up a batch file to copy/remove files along with a timer based on your OS, but a lot of people don't have that kind of access to their servers.
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
Falco
SourceMod Donor
Join Date: Dec 2004
Location: CANADA
Old 08-31-2007 , 02:34   Re: Basic Server Crontab
Reply With Quote #19

I have access to my server. So would this work then?

// Basic Server Crontab configuration file
//
// # = Weekday. Use * for all days of the week. Format is 0 = Sunday to 6 = Saturday
// # # = Hour of the day. The hour is in 24h format (0-23)
// # # # = Minute of the Hour (0-59)
//

// Load GG on Thursday 5am
4 5 0 "es_load gungame4"

// Unload GG on Friday 5am
5 5 0 "es_unload gungame4"
__________________
[DmZ|EPSILON CSS 70.75.139.92:27016
[DmZ|EPSILON GG 70.75.167.30:27015
[DmZ|EPSILON CS:GO Classic Casual 70.75.139.92:27013
[DmZ|EPSILON CS:GO Demolition 70.75.139.92:27014
[DmZ|EPSILON BF3 69.46.43.221:25203 (8-slot) Practice Server
www.dmzepsilon.ca
----------------------
Falco is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 08-31-2007 , 02:59   Re: Basic Server Crontab
Reply With Quote #20

yeah, that would work fine falco
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh 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 10:04.


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