This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

plugin that alerts player when server restarts?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 03-02-2014 , 18:50   plugin that alerts player when server restarts?
Reply With Quote #1

my servers restart daily at 6am

but to players the server looks like it crashes


is there a plugin that spams "SERVER RESTARTING, PLEASE REJOIN" using say, sm_msay etc like 1 minute before the server restarts?
__________________
PresidentEvil is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-02-2014 , 18:52   Re: plugin that alerts player when server restarts?
Reply With Quote #2

Quote:
Originally Posted by PresidentEvil View Post
my servers restart daily at 6am

but to players the server looks like it crashes


is there a plugin that spams "SERVER RESTARTING, PLEASE REJOIN" using say, sm_msay etc like 1 minute before the server restarts?
I guess it depends on how you're restarting the server... I know at least for TF2, using quit in the server console will disconnect all players with the message "Server is shutting down"
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 03-02-2014 , 19:30   Re: plugin that alerts player when server restarts?
Reply With Quote #3

http://forums.alliedmods.net/showthread.php?p=523298

Code:
//
// Basic Server Crontab configuration file
//
// # = Weekday Start. Format is 0 = Sunday to 6 = Saturday
//
// # # = Weekday End. Format is 0 = Sunday to 6 = Saturday
//
// # # # = Start hour of the day. The hour is in 24h format (0-23)
//
// # # # # = End hour of the day. The hour is in 24h format (0-23)
//
// # # # # # = Start minute of the hour (0-59)
//
// # # # # # # = End minute of the hour (0-59)
//
// Use ? to ignore the current weekday/hour/minute
//
//

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 58 58 "sm_say Server Restart in 2 Minutes!; sm_csay Server Restart in 2 Minutes!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 58 58 "sm_say Server Restart in 2 Minutes!; sm_csay Server Restart in 2 Minutes!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 58 58 "sm_say Server Restart in 2 Minutes!; sm_csay Server Restart in 2 Minutes!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 58 58 "sm_say Server Restart in 2 Minutes!; sm_csay Server Restart in 2 Minutes!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 58 58 "sm_say Server Restart in 2 Minutes!; sm_csay Server Restart in 2 Minutes!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 58 58 "sm_say Server Restart in 2 Minutes!; sm_csay Server Restart in 2 Minutes!"


// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 59 59 "sm_say Server Restart in 1 Minute!; sm_csay Server Restart in 1 Minute!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 59 59 "sm_say Server Restart in 1 Minute!; sm_csay Server Restart in 1 Minute!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 59 59 "sm_say Server Restart in 1 Minute!; sm_csay Server Restart in 1 Minute!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 59 59 "sm_say Server Restart in 1 Minute!; sm_csay Server Restart in 1 Minute!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 59 59 "sm_say Server Restart in 1 Minute!; sm_csay Server Restart in 1 Minute!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 59 59 "sm_say Server Restart in 1 Minute!; sm_csay Server Restart in 1 Minute!"



// Reboot the server everyday of the week at 5am
sc_addjob ? ? 5 5 0 0 "quit"
__________________
Fearts is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 03-02-2014 , 19:34   Re: plugin that alerts player when server restarts?
Reply With Quote #4

Quote:
Originally Posted by Fearts View Post
http://forums.alliedmods.net/showthread.php?p=523298

Code:
//
// Basic Server Crontab configuration file
//
// # = Weekday Start. Format is 0 = Sunday to 6 = Saturday
//
// # # = Weekday End. Format is 0 = Sunday to 6 = Saturday
//
// # # # = Start hour of the day. The hour is in 24h format (0-23)
//
// # # # # = End hour of the day. The hour is in 24h format (0-23)
//
// # # # # # = Start minute of the hour (0-59)
//
// # # # # # # = End minute of the hour (0-59)
//
// Use ? to ignore the current weekday/hour/minute
//
//

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 58 58 "sm_say Server Restart in 2 Minutes!; sm_csay Server Restart in 2 Minutes!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 58 58 "sm_say Server Restart in 2 Minutes!; sm_csay Server Restart in 2 Minutes!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 58 58 "sm_say Server Restart in 2 Minutes!; sm_csay Server Restart in 2 Minutes!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 58 58 "sm_say Server Restart in 2 Minutes!; sm_csay Server Restart in 2 Minutes!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 58 58 "sm_say Server Restart in 2 Minutes!; sm_csay Server Restart in 2 Minutes!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 58 58 "sm_say Server Restart in 2 Minutes!; sm_csay Server Restart in 2 Minutes!"


// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 59 59 "sm_say Server Restart in 1 Minute!; sm_csay Server Restart in 1 Minute!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 59 59 "sm_say Server Restart in 1 Minute!; sm_csay Server Restart in 1 Minute!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 59 59 "sm_say Server Restart in 1 Minute!; sm_csay Server Restart in 1 Minute!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 59 59 "sm_say Server Restart in 1 Minute!; sm_csay Server Restart in 1 Minute!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 59 59 "sm_say Server Restart in 1 Minute!; sm_csay Server Restart in 1 Minute!"

// Reboot the server everyday of the week at 5am
sc_addjob ? ? 4 4 59 59 "sm_say Server Restart in 1 Minute!; sm_csay Server Restart in 1 Minute!"



// Reboot the server everyday of the week at 5am
sc_addjob ? ? 5 5 0 0 "quit"
so I can my host take care of the auto restarts and have this plugin take care of the alerts?
__________________
PresidentEvil is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 03-02-2014 , 19:35   Re: plugin that alerts player when server restarts?
Reply With Quote #5

Quote:
Originally Posted by PresidentEvil View Post
so I can my host take care of the auto restarts and have this plugin take care of the alerts?
Correct. Obviously remove the line:
Code:
sc_addjob ? ? 5 5 0 0 "quit"
P.s. make sure your host time and plugin time are synced.

Last edited by Maxximou5; 03-02-2014 at 19:36.
Maxximou5 is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 03-02-2014 , 19:42   Re: plugin that alerts player when server restarts?
Reply With Quote #6

^What he said.
__________________
Fearts is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 03-02-2014 , 19:45   Re: plugin that alerts player when server restarts?
Reply With Quote #7

alright i installed everything

only question is setting up the time for 6am, or actually 5:59am

I don't understand how this would be 5:59am
Code:
sc_addjob ? ? 4 4 58 58
__________________

Last edited by PresidentEvil; 03-02-2014 at 19:46.
PresidentEvil is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 03-02-2014 , 19:54   Re: plugin that alerts player when server restarts?
Reply With Quote #8

It's not it's for 5am restart, you can edit it how you want for your own time.
__________________
Fearts is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 03-02-2014 , 19:57   Re: plugin that alerts player when server restarts?
Reply With Quote #9

Quote:
Originally Posted by Fearts View Post
It's not it's for 5am restart, you can edit it how you want for your own time.
so for 5:59am simply use

Code:
sc_addjob ? ? 5 5 59 59
?
__________________
PresidentEvil 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 10:49.


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