Raised This Month: $ Target: $400
 0% 

[ANY] Vote server restart


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Plugin ID:
7391
Plugin Version:
1.2
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Vote for server restarting
    Old 11-26-2020 , 12:30   [ANY] Vote server restart
    Reply With Quote #1

    Description:
    This plugin is intended to introduce server restart ability with a menu command.
    Features:
    - highly customizable text options (see translation file), available for:
    * chat (once)
    * chat (repeatable)
    * hint (center screen) text
    * console
    * kick message

    - safe server shutdown, algorithm:
    * freeze all players to make attention to this important vote
    * stops the director (for L4D series only)
    * unload all plugins
    * unload accelerator extension to prevent the false crash report
    * kick all players with an appropriate (adjustable) message
    * actual server restart

    - Logging
    - Cancel / force the vote
    - Multiple admin flags are supported
    Logfile location:
    - addons/sourcemod/logs/vote_restart.log
    Requirements:
    - GeoIP extension (included in SourceMod).
    Commands:
    - sm_restart - Start the vote with access check
    - sm_voterestart - same as above
    - sm_veto - Allow admin to veto current vote (with "d", ban flag)
    - sm_votepass - Allow admin to bypass current vote (with "z" flag)
    ConVars (settings):
    Available in: cfg/sourcemod/sm_voterestart.cfg:

    sm_voterestart_accessflag - def.: z - Admin flag(s) required to start the vote
    sm_voterestart_method - def.: 2 - Restart method (1 - _restart, 2 - crash)
    sm_voterestart_log - def.: 1 - Use logging? (1 - Yes / 0 - No)
    sm_voterestart_unload_ext_num - def.: 0 - If you have Accelerator extension, you need specify here order number of this extension in the list: sm exts list
    sm_voterestart_announcedelay - def.: 5.0 - Delay (in sec.) between announce and vote menu appearing
    sm_voterestart_timeout - def.: 10 - How long (in sec.) does the vote last
    sm_voterestart_actiondelay - def.: 5 - Delay (in sec.) before actual restarting, after displaying restart message
    Languages
    - Russian
    - English
    Installation
    1. Place l4d_voterestart.smx file to addons/sourcemod/plugins
    2. Place l4d_voterestart.phrases.txt file to addons/sourcemod/translations
    3. Change the map
    4.
    If you have "Accelerator" extension, do this:

    Related plugins:
    [ANY] Restart empty server
    ChangeLog:
    Spoiler

    TODO:
    - Find a way to detect Accelerator extension load order number automatically.

    Donate
    Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
    - Patreon (Paypal)
    - BitCoin
    - Ю.Money
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_voterestart.sp - 707 views - 12.2 KB)
    File Type: txt l4d_voterestart.phrases.txt (2.3 KB, 281 views)
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

    Last edited by Dragokas; 04-15-2021 at 09:56.
    Dragokas is offline
    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 10:05.


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