Raised This Month: $ Target: $400
 0% 

[L4D] Reserved Spectator Slots 1.3


Post New Thread Reply   
 
Thread Tools Display Modes
Author
olj
Veteran Member
Join Date: Jun 2009
Plugin ID:
1089
Plugin Version:
1.3
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Reserves any spectator slots for admins only and kicks any non-admin players which joins spectators.
    Old 08-13-2009 , 16:27   [L4D] Reserved Spectator Slots 1.3
    Reply With Quote #1

    Ok, i got an idea, while discussing about reserved slots for l4d. This plugin will check every connecting player and if they dont have admin-flags (reserved, kick or root) and they got into spectators, they will be kicked with appropriate kick reason. Will print to all chat why someone got kicked. This only checks players who just connected. It wont kick any who changed team to spectators or was moved by some afk manager plugin. I hope this would work. It would be useful for local hosting and for those who have spare slots on their rented server. Hopefully we will get working reserved slots for l4d somewhen.

    Claimed to be working fine.

    Config file "L4D_ReservedSpectators" will be created inside cfg/sourcemod folder.
    Dont forget to put translation file into sourcemod/translations if you use 1.2 or 1.3 version.

    CVARS:
    l4d_reserved_spectators_timetokick (default 10) "Specifies time before non-admin spectator will be kicked."
    l4d_reserved_spectators_playersb4kick, (default "Specifies how many players to have before adding timer to start kicking"

    l4d_rs_version Version of plugin.

    Changelog
    1.01 / Fixed a typo, which screwed message coloring.
    1.1 / Added CVAR to control time before kick will occur.
    1.2 / Added translation file. If doesnt work, use 1.1 version.
    1.3 (KrX edition)/ New cvar added, see cvars list for description. Some extra checks also.
    1.4 (KrX edition)/ Added version cvar and KrX to author's list in plugin info.
    Attached Files
    File Type: sp Get Plugin or Get Source (ReservedSpectators.sp - 2596 views - 2.4 KB)
    File Type: sp Get Plugin or Get Source (ReservedSpectators1.2.sp - 2201 views - 2.4 KB)
    File Type: txt reserved_spectators.phrases.txt (259 Bytes, 2373 views)
    File Type: sp Get Plugin or Get Source (ReservedSpectators1.3 (KrX version).sp - 2249 views - 2.8 KB)
    File Type: sp Get Plugin or Get Source (ReservedSpectators1.4 (KrX version).sp - 4721 views - 2.9 KB)
    __________________

    Last edited by olj; 09-12-2009 at 06:40.
    olj is offline
    GM-Scorp
    Senior Member
    Join Date: Jun 2009
    Location: netherlands
    Old 08-13-2009 , 17:05   Re: [L4D] Reserved Spectator Slots
    Reply With Quote #2

    Does this alow me to get in my server while its full ?

    i mean when it runs coop if there are 4/4 people playing does it alow me to use the 5Th slot as spectator and my other admins to use the 6 and 7th and 8 slot ?

    or am i getting this all wrong ?

    cuzz i have 2 server with 8 slots but 1 is always running coop so the other 4 slots are never used

    Last edited by GM-Scorp; 08-13-2009 at 17:08.
    GM-Scorp is offline
    Send a message via MSN to GM-Scorp
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 08-13-2009 , 17:10   Re: [L4D] Reserved Spectator Slots
    Reply With Quote #3

    If you have 8 fully unlocked slots - yes. Otherwise you need to get slots first by installing either L4DToolz metamod plugin or downtown extension.

    Anyway you, will need to set maxplayers to 8 for coop mode. Default maxplayers for coop is 4 and you will need extra plugins (mentioned above) to unlock maxplayers to make use of other slots.
    __________________

    Last edited by olj; 08-13-2009 at 17:14.
    olj is offline
    GM-Scorp
    Senior Member
    Join Date: Jun 2009
    Location: netherlands
    Old 08-13-2009 , 17:34   Re: [L4D] Reserved Spectator Slots
    Reply With Quote #4

    So if i instal the downtow 1 will that unlock the 4 extra slots on my server ? automaticly or do i need a extra cvar for it so it shows 8 slots?

    Last edited by GM-Scorp; 08-13-2009 at 17:41.
    GM-Scorp is offline
    Send a message via MSN to GM-Scorp
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 08-13-2009 , 18:22   Re: [L4D] Reserved Spectator Slots
    Reply With Quote #5

    I dont know how Downtown function, i use Metamod L4DToolz and This I have set 10 max survivors and 10 max infected via survivor_limit and z_max_player_zombies cvars, which you need to unblock with above miniplugin (just put it in plugins). Then with L4DToolz i set sv_maxplayers variable to 20. If i want spectator slots then, i can just set it to 21 or whatever i want. You may also set sv_visiblemaxplayers, so everyone will see as much slots as you want (if you set it to 4, everyone will see only 4 slots, even if there are 4 more unlocked slots available.

    As for downtown - read appropriate topic. I've never used it, but it is working. Its just that Toolz is easier to use, because you wont need any other plugins (like "Superversus" for example) to have more players. Only miniplugin to unblock mentioned cvars' upper bounds (they locked to 4 max survivors and 4 max infected by default).
    __________________
    olj is offline
    GM-Scorp
    Senior Member
    Join Date: Jun 2009
    Location: netherlands
    Old 08-13-2009 , 18:36   Re: [L4D] Reserved Spectator Slots
    Reply With Quote #6

    i gues it doesnt work when connected trough a lobby right ?
    GM-Scorp is offline
    Send a message via MSN to GM-Scorp
    turktheturd
    Member
    Join Date: Jul 2009
    Old 08-13-2009 , 19:52   Re: [L4D] Reserved Spectator Slots
    Reply With Quote #7

    probably as same as superversus+downtown system. I mean unreserve stuff, matchmaking wont work, direct connect etc...
    __________________
    turktheturd is offline
    GM-Scorp
    Senior Member
    Join Date: Jun 2009
    Location: netherlands
    Old 08-13-2009 , 19:58   Re: [L4D] Reserved Spectator Slots
    Reply With Quote #8

    yeah i alway connect with a lobby otherwise i cant sent any play invites to friends

    so i gues i cant use this then
    GM-Scorp is offline
    Send a message via MSN to GM-Scorp
    turktheturd
    Member
    Join Date: Jul 2009
    Old 08-13-2009 , 20:22   Re: [L4D] Reserved Spectator Slots
    Reply With Quote #9

    I'm surprised nobody found a solution for unreserve when full and re-reserve when less players on. it would make matchmaking work.
    __________________
    turktheturd is offline
    Whosat
    Senior Member
    Join Date: Nov 2007
    Location: Singapore
    Old 08-14-2009 , 05:04   Re: [L4D] Reserved Spectator Slots
    Reply With Quote #10

    Quote:
    Originally Posted by turktheturd View Post
    I'm surprised nobody found a solution for unreserve when full and re-reserve when less players on. it would make matchmaking work.
    There is a solution for the former, but re-reserving when less players get on - I don't think there's been a function developed for that, yet. Left4Downtown extension has only functions to unreserve the server.
    __________________
    Whosat 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 03:56.


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