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

[ANY] Server Crontab


Post New Thread Reply   
 
Thread Tools Display Modes
Larsen
Senior Member
Join Date: Oct 2011
Old 11-05-2011 , 15:55   Re: Server Crontab
Reply With Quote #121

Yeah it worked now, sorry for the hassle guys. Didn't realize it wouldn't work on win2000. Worked just fine on this win7 machine.

Also interesting note, is it supposed to be different sizes after I compiled them in different sourcemod versions? The 1.3.9 smxs are bigger than the 1.4.0.
__________________

Larsen is offline
sipster19
Senior Member
Join Date: Mar 2011
Old 11-05-2011 , 23:02   Re: Server Crontab
Reply With Quote #122

I read that sourcemod 1.40 compiles plugins 5x faster. I never read anything that they would be different sizes.
sipster19 is offline
Larsen
Senior Member
Join Date: Oct 2011
Old 11-06-2011 , 01:49   Re: Server Crontab
Reply With Quote #123

I have a config question guys I hope you can help:


Code:
// Say reboot notice to server 10 mins prior
// Starting at 7:50:00AM CST
sc_addjob 0 ? 7 7 50 50 "say Server is restarting in 10 minutes!"

// Say reboot notice to server 5 mins prior
// Starting at 7:55:00AM CST
sc_addjob 0 ? 7 7 55 55 "say Server is restarting in 5 minutes!"

// Say reboot center-screen notice to server 45 seconds prior
// Starting at 7:59:15AM CST
sc_addjob 0 ? 7 7 59.25 59.25 "sm_csay Server is restarting in 45 seconds, please reconnect!"

// Say reboot menu-say notice to server 40 seconds prior
// Starting at 7:59:20AM CST
sc_addjob 0 ? 7 7 59.33 59.33 "sm_msay Server is restarting in 40 seconds, reconnect!"

// Say reboot admin-chat notice to server 30 seconds prior
// Starting at 7:59:30AM CST
sc_addjob 0 ? 7 7 59.5 59.5 "sm_say Server is restarting in 30 seconds, reconnect!"

// Reboot the server on Sunday once a week at 8am CST
sc_addjob 0 ? 8 8 0 1 "quit"

// Say reboot notice to server 10 mins prior
// Starting at 7:50:00AM CST
sc_addjob 3 ? 7 7 50 50 "say Server is restarting in 10 minutes!"

// Say reboot notice to server 5 mins prior
// Starting at 7:55:00AM CST
sc_addjob 3 ? 7 7 55 55 "say Server is restarting in 5 minutes!"

// Say reboot center-screen notice to server 45 seconds prior
// Starting at 7:59:15AM CST
sc_addjob 3 ? 7 7 59.25 59.25 "sm_csay Server is restarting in 45 seconds, please reconnect!"

// Say reboot menu-say notice to server 40 seconds prior
// Starting at 7:59:20AM CST
sc_addjob 3 ? 7 7 59.33 59.33 "sm_msay Server is restarting in 40 seconds, reconnect!"

// Say reboot admin-chat notice to server 30 seconds prior
// Starting at 7:59:30AM CST
sc_addjob 3 ? 7 7 59.5 59.5 "sm_say Server is restarting in 30 seconds, reconnect!"

// Reboot the server on Wednesday once a week at 8am CST
sc_addjob 3 ? 8 8 0 1 "quit"
Will this work as I wrote for the notes? Am I able to use decimals like 59.5 to represent 30 seconds before the hour?

Also, does it matter if I use "quit" instead of "_restart"?
__________________


Last edited by Larsen; 11-06-2011 at 01:54.
Larsen is offline
Larsen
Senior Member
Join Date: Oct 2011
Old 11-09-2011 , 21:48   Re: Server Crontab
Reply With Quote #124

Thanks guys, I've gotten it configured and working beautifully with your help

Anyone use this for something other than switching map rotations and displaying text? I'm sure there's something I'm not thinking of that could make this much more useful.
__________________

Larsen is offline
AlfredSpain
Senior Member
Join Date: Oct 2010
Old 11-19-2011 , 05:27   Re: Server Crontab
Reply With Quote #125

Sorry...

Here are the exact steps how to compile them:

1. Download sourcemod
2. Extract the addons folder.
3. Navigate to the scripting folder.
4. Delete every sp file and the compile.sh
5. Place my versions of sc.sp and sp_module.sp in the scripting folder.
6. Download the scrotab.inc in the first post.
7. Place it in the scripting/include folder.
8. Run compile.exe
9. Navigate to scripting/compiled. The files are now compiled.


compile.exe

Where is this file?
AlfredSpain is offline
Snake60
Senior Member
Join Date: Jul 2008
Location: Russia, Pskov
Old 11-19-2011 , 05:56   Re: Server Crontab
Reply With Quote #126

Must be in scripting folder
__________________
Snake60 is offline
Send a message via ICQ to Snake60 Send a message via MSN to Snake60 Send a message via Skype™ to Snake60
AlfredSpain
Senior Member
Join Date: Oct 2010
Old 11-19-2011 , 05:59   Re: Server Crontab
Reply With Quote #127

scripting/compile.sh?
AlfredSpain is offline
Snake60
Senior Member
Join Date: Jul 2008
Location: Russia, Pskov
Old 11-19-2011 , 06:03   Re: Server Crontab
Reply With Quote #128

scripting/compile.sh - for Linux
scripting/compile.exe - for Windows
__________________
Snake60 is offline
Send a message via ICQ to Snake60 Send a message via MSN to Snake60 Send a message via Skype™ to Snake60
AlfredSpain
Senior Member
Join Date: Oct 2010
Old 11-19-2011 , 06:05   Re: Server Crontab
Reply With Quote #129

ha, ok. sorry.

Sure, I download the version of linux as my server is linux but this machine is windows: S
AlfredSpain is offline
AlfredSpain
Senior Member
Join Date: Oct 2010
Old 11-19-2011 , 06:26   Re: Server Crontab
Reply With Quote #130

Is total sm compile with the windows for use in a linux server?

This command is correct:

sc_addjob? ? 11 11 0 0 "16,000 mp_startmoney"
AlfredSpain 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 01:54.


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