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

[TF2] Autorestartgame


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MON@H Rasta
Junior Member
Join Date: Dec 2010
Location: Kyiv, Ukraine
Plugin ID:
3268
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Automaticly restarts game (round) after a specified time. Adds command to quickly restart game.
    Old 09-29-2012 , 17:29   [TF2] Autorestartgame
    Reply With Quote #1

    [TF2] Autorestartgame

    This plugin will automaticly restart game (round) after a specified time. This is sometimes useful for idle servers, like mine
    Also add a command to quickly restart game.

    Commands:
    • sm_restartgame - Restarts the round and resets the round time (= rcon mp_restartgame 1) + AllChat message "[SM] Restarting game in 1 second"

    Convars:
    • sm_autorestartgame - Enable/Disable Autorestartgame (0 - default)
    • sm_autorestartgame_time - Time in minutes before Autorestartgame (60 - default)

    Command sm_restartgame can be added to adminmenu_custom.txt (read http://wiki.alliedmods.net/Custom_Admin_Menu_(SourceMod))

    ToDo:
    • Add a vote for restart game
    • Add a vote for Enable/Disable autorestart game
    • Add advanced menu to SM admin menu

    Thanks Hunter S. Thompson for helping.
    Attached Files
    File Type: sp Get Plugin or Get Source (TF2_Autorestartgame.sp - 1179 views - 1.8 KB)

    Last edited by MON@H Rasta; 09-30-2012 at 11:15.
    MON@H Rasta is offline
    Send a message via ICQ to MON@H Rasta Send a message via Skype™ to MON@H Rasta
    NameUser
    Senior Member
    Join Date: Apr 2012
    Location: Bay Area, California
    Old 09-29-2012 , 18:41   Re: [TF2] Autorestartgame
    Reply With Quote #2

    This could be useful for small competitive games.. Either way, good work.
    __________________
    NameUser is offline
    Send a message via Skype™ to NameUser
    C0nw0nk
    Senior Member
    Join Date: May 2011
    Location: United Kingdom
    Old 09-30-2012 , 17:32   Re: [TF2] Autorestartgame
    Reply With Quote #3

    Wow brilliant why did i never think of this !

    I would set the time limit for about 12 hours on a 24/7 server but i suppose if users want a manual change then voting is another excellent addition for this <3
    __________________
    C0nw0nk is offline
    Send a message via MSN to C0nw0nk
    Atreus
    SourceMod Donor
    Join Date: Apr 2005
    Location: San Diego, CA
    Old 06-20-2013 , 07:28   Re: [TF2] Autorestartgame
    Reply With Quote #4

    Quote:
    Originally Posted by K o T View Post
    the plugin rebooted without reconnect of players
    as it is possible to make
    Are you trying to ask if he can add a feature so that the plugin will only do this if there are no players on the server? That's what I got out of this, anyway.
    Atreus is offline
    Send a message via AIM to Atreus Send a message via MSN to Atreus
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 07-05-2013 , 12:03   Re: [TF2] Autorestartgame
    Reply With Quote #5

    If your timer ends and game "autorestart", on map end the plugin will generate and error, as you will be killing an invalid timer.

    Also, the timer doesn't restart once ForceRestartGame is called (this may be wanted; thought I doubt that).

    Red
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    K o T
    Senior Member
    Join Date: Jan 2011
    Old 07-29-2013 , 10:21   Re: [TF2] Autorestartgame
    Reply With Quote #6

    add it possible
    sm_autorestartgame_maxrounds
    K o T 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 17:40.


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