Thread: Configs
View Single Post
Author Message
Larsen
Senior Member
Join Date: Oct 2011
Old 11-06-2011 , 15:06   Configs
Reply With Quote #1

This isn't actually a script question, but I figure the people who frequent this forum would know the answer best.

I know need to know what kind of numbers (integers, decimal, real numbers, etc.) the configs/convars will read?

This is my config for a cronjob I want to run for map changes/warnings sent out before the restart:
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 15:17.
Larsen is offline