Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Reserve The Server


Post New Thread Reply   
 
Thread Tools Display Modes
Author
kwski43
Senior Member
Join Date: Mar 2009
Plugin ID:
4048
Plugin Version:
1.1.0
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    23 
    Plugin Description:
    Frees the server from all players and reserves it by disconnecting it from matchmaking.
    Old 01-12-2014 , 12:36   [L4D & L4D2] Reserve The Server
    Reply With Quote #1

    THIS PLUGIN HAS NOTHING TO DO WITH VALVE'S LOBBY RESERVATION

    This plugin will let you free your server from all currently playing players and reserve it in case you want to join/force it from own lobby.
    Plugin for people running own server(s) available to matchmaking games who sometimes force own server from lobby and don't want to be rude kicking everyone playing on it and breaking their lobby.
    Why not being polite and just let them return to lobby?



    CVars: (l4d_reservetheserver.cfg)
    • l4d_reservetheserver_mode - Change the reservation method: (Default: 1)
      • 0 - only remove players using lobby vote
      • 1 - remove players using lobby vote and then disconnect server from matchmaking
    • l4d_reservetheserver_searchkey - sv_search_key will be set to this while server is reserved
    • l4d_reservetheserver_timeout - How long will the server stay disconnected from matchmaking? 0 - means never restore matchmaking connection (Default: 30)
    • l4d_reservetheserver_immuneflag - If player with this flag is present on the server reservation request will be denied (Default: "d")
    You can customize the message shown to players by editing MESSAGE_FOR_PLAYERS_LINEX lines and compiling plugin yourself

    How to use:
    • Execute sm_reservetheserver command (requires ADMFLAG_ROOT flag), after few seconds server will be freed and reserved, if server is empty reservation is immediate
    • if you wish to cancel reservation use sm_cancelreservation command, it will connect server back to matchmaking and remove cvar changes, it will not reload map if players are online!
    Note that you have to execute these commands remotely via any remote rcon software/script.

    Changelog:
    Code:
    1.0.0
    - Initial release
    1.0.1
    - Code fixes
    1.1.0
    - Added new command: sm_cancelreservation
    Not tested on L4D1 although it should work.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_reservetheserver.sp - 1816 views - 6.7 KB)
    __________________

    Last edited by kwski43; 01-27-2014 at 05:56. Reason: typos
    kwski43 is offline
    Ja-Forces
    Senior Member
    Join Date: Jul 2009
    Location: Leningrad
    Old 06-27-2018 , 17:06   Re: [L4D & L4D2] Reserve The Server
    Reply With Quote #2

    * Updated to new-syntax rules

    CVARS:

    l4d_rts_mode - "0 - only remove players using lobby vote, 1 - remove players using lobby vote and then disconnect server from matchmaking"
    l4d_rts_searchkey - "sv_search_key will be set to this while server is reserved"
    l4d_rts_timeout - "How long will the server stay disconnected from matchmaking? 0 - never restore matchmaking connection"
    l4d_rts_immuneflag - "If player with this flag is present on the server reservation request will be denied"

    sm_rts - "Free the server from all players, then reserve it."
    sm_cr - "Cancel reservation and make server public again."
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_rts.sp - 233 views - 6.4 KB)
    __________________

    Last edited by Ja-Forces; 08-21-2022 at 08:51.
    Ja-Forces is offline
    thewintersoldier97
    Senior Member
    Join Date: Aug 2021
    Location: Vietnam
    Old 09-16-2021 , 00:21   Re: [L4D & L4D2] Reserve The Server
    Reply With Quote #3

    Hello, nice plugin idea! But what do you mean by "execute these commands remotely via any remote rcon software/script."?

    Last edited by thewintersoldier97; 09-16-2021 at 00:22.
    thewintersoldier97 is offline
    Ja-Forces
    Senior Member
    Join Date: Jul 2009
    Location: Leningrad
    Old 09-16-2021 , 02:05   Re: [L4D & L4D2] Reserve The Server
    Reply With Quote #4

    It means that you need to use a specific program. For example HLSW to operate with this plugin .
    __________________
    Ja-Forces is offline
    thewintersoldier97
    Senior Member
    Join Date: Aug 2021
    Location: Vietnam
    Old 09-25-2021 , 14:08   Re: [L4D & L4D2] Reserve The Server
    Reply With Quote #5

    Quote:
    Originally Posted by Ja-Forces View Post
    It means that you need to use a specific program. For example HLSW to operate with this plugin .
    Can Source Admin Tool do the work? Thanks!

    Last edited by thewintersoldier97; 09-25-2021 at 14:09.
    thewintersoldier97 is offline
    Ja-Forces
    Senior Member
    Join Date: Jul 2009
    Location: Leningrad
    Old 09-25-2021 , 14:41   Re: [L4D & L4D2] Reserve The Server
    Reply With Quote #6

    Any script|program that supports RCON Protocol
    __________________

    Last edited by Ja-Forces; 09-26-2021 at 16:58.
    Ja-Forces is offline
    thewintersoldier97
    Senior Member
    Join Date: Aug 2021
    Location: Vietnam
    Old 10-03-2021 , 07:34   Re: [L4D & L4D2] Reserve The Server
    Reply With Quote #7

    Quote:
    Originally Posted by Ja-Forces View Post
    Any script|program that supports RCON Protocol
    Hey, so I've been tried to use this plugins (the version you provide of course) through Source Admin Tool but every time I entered the command, "] sm_reservetheserver
    Unknown command "sm_reservetheserver"" is all I get...Any though? Thank in advance!
    thewintersoldier97 is offline
    Ja-Forces
    Senior Member
    Join Date: Jul 2009
    Location: Leningrad
    Old 10-03-2021 , 07:49   Re: [L4D & L4D2] Reserve The Server
    Reply With Quote #8

    sm_rts - Free the server from all players, then reserve it.
    sm_cr - Cancel reservation and make server public again.
    __________________

    Last edited by Ja-Forces; 10-03-2021 at 08:31.
    Ja-Forces is offline
    thewintersoldier97
    Senior Member
    Join Date: Aug 2021
    Location: Vietnam
    Old 10-03-2021 , 13:53   Re: [L4D & L4D2] Reserve The Server
    Reply With Quote #9

    Quote:
    Originally Posted by Ja-Forces View Post
    sm_rts - Free the server from all players, then reserve it.
    sm_cr - Cancel reservation and make server public again.
    Thank you! Now it's working like a charm!
    thewintersoldier97 is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 12-26-2021 , 15:05   Re: [L4D & L4D2] Reserve The Server
    Reply With Quote #10

    what it different between sv_force_unreserved 1?
    does "sv_force_unreserved 0" Server exposure is relatively lowly?
    __________________
    NoroHime 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 23:53.


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