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

Server Reboot Countdown + Screenfade?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blood2k
Senior Member
Join Date: Mar 2014
Old 02-10-2017 , 11:31   Server Reboot Countdown + Screenfade?
Reply With Quote #1

What's up guys possible to make a server reboot message? triggered by cvar that works at a specific time hour/minute/seconds depending on servers time zone
Something like:
amx_restartime 16:59:50


something that counts down from 10 with a screen fading to black and a couple hud messages in the middle saying:

SERVER IS RESTARTING PLEASE REJOIN!
SERVER IS RESTARTING PLEASE REJOIN!
SERVER IS RESTARTING PLEASE REJOIN!
SERVER IS RESTARTING PLEASE REJOIN!

I used to use the task manager with the harlem shake plugin which actually faded your screen and counted down + played the harlem shake after.. but task manager is giving me errors and no support at the moment.
blood2k is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-10-2017 , 12:16   Re: Server Reboot Countdown + Screenfade?
Reply With Quote #2

Is any commands that can reboot server?
__________________
Relaxing is offline
blood2k
Senior Member
Join Date: Mar 2014
Old 02-10-2017 , 13:38   Re: Server Reboot Countdown + Screenfade?
Reply With Quote #3

I'm sure they exist, or even a plugin that reboots a server exists.. but currently I just have my linux box set to a cron job.. which reboots at 2 pm central time.
blood2k is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-10-2017 , 15:08   Re: Server Reboot Countdown + Screenfade?
Reply With Quote #4

I'm not sure about your request, the main thing is how to reboot your server, which seems weird. Anyway, are you the host of your server or you're using a gameserver hosting?
__________________

Last edited by Relaxing; 02-10-2017 at 15:09.
Relaxing is offline
blood2k
Senior Member
Join Date: Mar 2014
Old 02-10-2017 , 16:50   Re: Server Reboot Countdown + Screenfade?
Reply With Quote #5

Oh okay, I think I confused you. I already have a way of rebooting my server, that's not the problem. It is set through a "cron tab" on my VPS box. Which means the computer that hosts the server is set to shutdown and re-launch the hlds.exe at a specific time.


My main concern is letting my users know that server is about to restart.. so I wanted a plugin that would let ppl know 10 seconds before it happens by fading the screen to black while counting from 10 to 1 and showing hud messages --- all of this to happen at a specific time controlled within the plug in or a separate cvar? doesnt matter.

Server is out in Chicago and restarts at 2 PM central time.

I just want a plugin that will do all the things above at 1:59:50 to notify users 10 seconds before 2 PM that it's restarting.
blood2k is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-11-2017 , 14:52   Re: Server Reboot Countdown + Screenfade?
Reply With Quote #6

But friend, do you think that AMX MOD X Scripting will restart hlds.exe at a specific time as you said?
__________________
Relaxing is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-11-2017 , 15:31   Re: Server Reboot Countdown + Screenfade?
Reply With Quote #7

he want only advertis plugin will work in a specific time i think this time 1:59:50 and will stay 10 secondes repeating the same messages and it's this :

SERVER IS RESTARTING PLEASE REJOIN!
SERVER IS RESTARTING PLEASE REJOIN!
SERVER IS RESTARTING PLEASE REJOIN!
SERVER IS RESTARTING PLEASE REJOIN!

Last edited by yas17sin; 02-11-2017 at 15:31.
yas17sin is offline
Send a message via ICQ to yas17sin
AdamK
Member
Join Date: Jul 2016
Location: Washington, D.C.
Old 02-11-2017 , 15:47   Re: Server Reboot Countdown + Screenfade?
Reply With Quote #8

@blood2k:

This may-be of some help to you,

Task Scheduler - by JustinHoMi
https://forums.alliedmods.net/showthread.php?t=1263

With a combination of,

Command Targeting Plus
https://forums.alliedmods.net/showthread.php?t=292897

Using Task Scheduler, you can set the time to execute that particular task & using Command Targeting Plus, you can execute the command.
For e.g. amx_say @all "Server is Restarting!! Please rejoin again.."
Or may-be any other similar plugins, that could be used to execute the message.

Someone else may be able to help you better. :-)
__________________
| Adam |

Last edited by AdamK; 02-11-2017 at 15:59.
AdamK is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-12-2017 , 07:49   Re: Server Reboot Countdown + Screenfade?
Reply With Quote #9

amx_say @all?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
AdamK
Member
Join Date: Jul 2016
Location: Washington, D.C.
Old 02-12-2017 , 17:17   Re: Server Reboot Countdown + Screenfade?
Reply With Quote #10

@OciXCrom:

Just an attempt to help him out, the way i can, till someone else responds.

I think i have already mentioned it in my post also "Someone else may be able to help you better. :-)"

& about amx_say @all?,
I just meant the say commands..

Like we use this command to send a center HUD message to all player,
amx_csay "red" "Server is Restarting!! Rejoin.."

Actually didn't tried your plugin (Command Targeting Plus) yet, so no idea, what would be the output if we use it that way, so just told him to give it a try, just in-case if that works. :-P

But now the way i recall, i think, he can just use the plugin Task Scheduler with the setting, somewhat like,

amx_task 16:58:00 "amx_csay red Server-is-Restarting-Rejoin.." t
(or Whatever is the syntax of Task Scheduler.)

which goes in the amx.cfg or server.cfg file.


I don't know, whatever i wrote is right or wrong, lol


Someone with better experience and knowledge may help him out.
AdamK 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 09:43.


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