SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 02/05/2012, 03:01 PM   #1
BRICS
Big Clucker
 
BRICS's Avatar
 
Join Date: Feb 2012
Location: Russia, Ekaterinburg
Posts: 62
Reputation: 23
Default AutoRestarter


Description:

This script will restart your server at the specified time.

Functionality:
  1. Easy to use.
  2. Notification of restart in X seconds to restart.
  3. Notification of restart with restart.
  4. Support a large number of restarts.
  5. All the basic parameters are edited through the file.
  6. Good quality script.

How to use the script:

Admin command "/reload_r" will reset the database script. This can be used, for example, if you change the database.
The script is managed through a database - file AutoRestarter.ini
Database key countdown is responsible for the time frame to restart in seconds.
Database key countdown_message is responsible for the message, which will go into the chat to all players, when to restart the server will be X seconds (X - the value of countdown).
Database key restart_message is responsible for the message, which will go into the chat to all players when restarting.
Database key system_state is the key security, which prevents re-restart the coincidence of time.
Database key restart_time_X contains a number of times restarting X, has the format "Hour: Minute" , X - ID: 0 ... limit.

Example database:

Quote:
countdown_message = {00ff00} [AutoRestarter]: {ffffff} The server will restart in% d seconds
restart_message = {00ff00} [AutoRestarter]: {ffffff} The server is restarted
countdown = 10
system_state = 0
restart_time_0 = 0:0
restart_time_1 = 12:35
if you use the database server will be restarted twice: at midnight and at 12:35. In the chat will be sent the appropriate message.

Credits: MX_MASTER - mxINI

Download:

DropBox
Pastebin

Last edited by BRICS; 07/05/2013 at 11:08 AM.
BRICS is offline   Reply With Quote
Old 02/05/2012, 03:04 PM   #2
Mr_RokKi3[B]
Little Clucker
 
Mr_RokKi3[B]'s Avatar
 
Join Date: Dec 2011
Location: Isreal.
Posts: 35
Reputation: 0
Default Re: AutoRestarter

Nice Script.
__________________
Ben
programer pawn .

Mr_RokKi3[B] is offline   Reply With Quote
Old 02/05/2012, 08:03 PM   #3
SwiftKidZ
Huge Clucker
 
SwiftKidZ's Avatar
 
Join Date: Apr 2012
Location: Swift GangstaR Town
Posts: 256
Reputation: 13
Default Re: AutoRestarter

Nice Work good for starters
__________________
SwiftKidZ is offline   Reply With Quote
Old 03/05/2012, 10:36 PM   #4
HeLiOn_PrImE
Gangsta
 
HeLiOn_PrImE's Avatar
 
Join Date: Jul 2010
Location: Sighisoara, Romania
Posts: 731
Reputation: 43
Default Re: AutoRestarter

I can put as many restart moments as I want? I don't get how the config file works...
and my second question: does this restart the entire server, or only the gm and fs?
__________________

My releases:
[FilterScript]Car Tuning Menu v. 2.2
[Map] Blake Island
[Map] Paul Walker Memorial
HeLiOn_PrImE is offline   Reply With Quote
Old 04/05/2012, 02:20 AM   #5
BRICS
Big Clucker
 
BRICS's Avatar
 
Join Date: Feb 2012
Location: Russia, Ekaterinburg
Posts: 62
Reputation: 23
Default Re: AutoRestarter

Quote:
Originally Posted by HeLiOn_PrImE View Post
I can put as many restart moments as I want? I don't get how the config file works...
and my second question: does this restart the entire server, or only the gm and fs?
The script sends the command "gmx" to the server. Restart will always run at a specified time (restart_time_X).
BRICS is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] AutoRestarter nepstep Includes 24 13/03/2011 03:10 AM


All times are GMT. The time now is 06:18 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.