Raised This Month: $114 Target: $400
 28% 

Server Restart v2.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   v3x (159)
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-01-2006 , 20:17   Server Restart v2.2
Reply With Quote #1

Server Restart v2.2

Description
This plugin is basically an extension of mysticssjgoku4's server shutdown, which is very limited and hardcoded (although it does work). It also logs when admins use it, and displays messages according to your amx_show_activity cvar.

Commands
amx_restart (seconds 1-20) - will restart the server in (seconds), counting down along the way. Serverdoc or any autorestarting tool is not needed for this, it will restart on it's own. Clients will also reconnect.

amx_shutdown (seconds 1-20) - will shut down the server in (seconds), counting down along the way. This will shut the server down entirely unless you have serverdoc or another autorestarting tool. Clients will not reconnect.
Attached Files
File Type: sma Get Plugin or Get Source (server_restart.sma - 13557 views - 3.2 KB)
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 02-01-2006 , 20:19  
Reply With Quote #2

how does it restart it?

meaning, will this shut it down and restart it?

like serverdoc?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-01-2006 , 20:21  
Reply With Quote #3

Restart - you do not need serverdoc to restart it, it'll restart on it's own. Also, all users will reconnect.

Shutdown - no one will reconnect, and the server will be completely down unless you have serverdoc.

EDIT: Modified first post to contain this info.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 02-01-2006 , 21:47  
Reply With Quote #4

Love the idea, testing on my servers now. Tested it on an empty Win2k3 server running a 1.3 DoD server as a Windows Service with AMXX 1.5 and 1.18 Metamod.

I will test on my busy server later.

Worked flawlessly. Good Job.
__________________
pendragon is offline
Send a message via ICQ to pendragon Send a message via AIM to pendragon Send a message via MSN to pendragon
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-01-2006 , 21:53  
Reply With Quote #5

Thanks for the confirmation! I only tested it for each command once with time set to 10 seconds.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
kILL-jOY
Member
Join Date: Jul 2005
Old 02-01-2006 , 22:02  
Reply With Quote #6

so this only upgraded, like u said in the top post

but this has a restart so ill use this instead

nj
__________________
**|$uperHero|** Free level 8 / 75+ Heroes / BuyXP at 68.191.146.3:27015 - CS 1.6


kILL-jOY is offline
omghax
Member
Join Date: Dec 2005
Location: eth0
Old 02-01-2006 , 22:29  
Reply With Quote #7

mm, sweet
__________________
Quote:
George Carlin: Reminds me of something my grandfather used to say. He used to say "I'm going upstairs and fuck your grandmother." Well, he was an honest guy, you know? He wasn't going to lie to a little kid.
omghax is offline
Send a message via AIM to omghax Send a message via MSN to omghax Send a message via Yahoo to omghax Send a message via Skype™ to omghax
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-02-2006 , 00:13  
Reply With Quote #8

Sexy.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Puntje
Member
Join Date: May 2004
Old 02-02-2006 , 01:28  
Reply With Quote #9

Hmm, doesn't seem to do anything here.

It just counts down (skips the one during countdown aswell) and then nothing..
The only thing i adjusted was that the access needed wasn't ADMIN_BAN to ADMIN_RCON.

Loggins in the console shows that i used the shutdown option aswell, although i clearly stated amx_restart 20 in the console.
Quote:
L 02/02/2006 - 06:25:04: [server_restart.amxx] Cmd: "Goldenstrike // Rawh<1><.....>" initiate shutdown
Here's my meta list
Quote:
meta list
Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.60 ini ANY ANY
[ 2] SBSRV RUN - sbsrv_mm_i386.so v2.4 ini Start Never
[ 3] Fun RUN - fun_amxx_i386.so v1.60 pl1 ANY ANY
[ 4] Engine RUN - engine_amxx_i386 v1.60 pl1 ANY ANY
[ 5] MySQL RUN - mysql_amxx_i386. v1.60 pl1 ANY ANY
[ 6] GeoIP RUN - geoip_amxx_i386. v1.60 pl1 ANY ANY
[ 7] CStrike RUN - cstrike_amxx_i38 v1.60 pl1 ANY ANY
7 plugins, 7 running
My amxx list
Quote:
amxx list
Currently loaded plugins:
name version author file status
[ 1] Admin Base (AmxBa 1.60 AMXX Dev Team admin_sql.amxx running
[ 2] AMXBans 4.3 YoMama/Lux & lan amxbans.amxx running
[ 3] Admin Commands 1.60 AMXX Dev Team admincmd.amxx running
[ 4] Admin Help 1.60 AMXX Dev Team adminhelp.amxx running
[ 5] Slots Reservation 1.60 AMXX Dev Team adminslots.amxx running
[ 6] Multi-Lingual Sys 1.60 AMXX Dev Team multilingual.am running
[ 7] Menus Front-End 1.60 AMXX Dev Team menufront.amxx running
[ 8] Commands Menu 1.60 AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.60 AMXX Dev Team plmenu.amxx running
[ 10] Maps Menu 1.60 AMXX Dev Team mapsmenu.amxx running
[ 11] Admin Chat 1.60 AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.60 AMXX Dev Team antiflood.amxx running
[ 13] Scrolling Message 1.60 AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages 1.60 AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.60 AMXX Dev Team adminvote.amxx running
[ 16] NextMap 1.60 AMXX Dev Team nextmap.amxx running
[ 17] Nextmap Chooser 1.60 AMXX Dev Team mapchooser.amxx running
[ 18] TimeLeft 1.60 AMXX Dev Team timeleft.amxx running
[ 19] Pause Plugins 1.60 AMXX Dev Team pausecfg.amxx running
[ 20] Stats Configurati 1.60 AMXX Dev Team statscfg.amxx running
[ 21] Restrict Weapons 1.60 AMXX Dev Team restmenu.amxx running
[ 22] Awp2Scout 0.2 [-3LH-]Geezus awp2scout.amxx running
[ 23] say /motd 1.1 Pa1n say_motd.amxx running
[ 24] High Ping Kicker 1.2.0 DynAstY hpk.amxx running
[ 25] Spec Kick 1.0 foo.bar spec_kick.amxx running
[ 26] Admin Spectator E 1.0 KoST admin_spec_esp. running
[ 27] Server Shutdown 2.0 Hawk552 server_restart. running
27 plugins, 27 running
__________________
~ Nothing travels faster then the speed of light with the possible exception of bad news, which follows it's own laws! - Douglas Adams ~
Puntje is offline
Send a message via ICQ to Puntje
Fyre
Senior Member
Join Date: Oct 2005
Location: Potsdam/Germany
Old 02-02-2006 , 07:20  
Reply With Quote #10

The restart function is just reloading the map the server does not quit and "restart" the rcon cmd "restart" reloads only the map, if you want a real restart then amx_rcon quit/rcon quit/ whatever to do a quit
__________________
Fyre is offline
Send a message via ICQ to Fyre
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 17:38.


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