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

[ANY] Basic Reserved Slots using Connect (11.08.2016)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Plugin ID:
5312
Plugin Version:
1.00
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Basic reserved slots using Connect
    Old 08-11-2016 , 16:33   [ANY] Basic Reserved Slots using Connect (11.08.2016)
    Reply With Quote #1

    Description:
    This plugin provides basic "reserved slots" using Connect. No need to "reserve" slots when using this plugin, because you dont need them. Everyone can use all slots. If the server is full, an admin can connect through console. The plugin will kick someone(players without reservation flags, spectators selected first) out.

    I needed a simple reserved slots plugin where all slots are available to everyone, but people with reservation flag could still connect, even if the server is full(through console). So, I just modified the plugin from https://forums.alliedmods.net/showthread.php?t=72322, because it could do exactly what I wanted, but it uses a different extension. I updated the plugin so it uses Connect, new syntax, added a cvar for kick reason and a couple of optimizations. I know about H-Reserved, but its outdated and not maintained anymore.

    Connect is an extension, required for this plugin to function. It only supports a limited number of games. More info about the extension and games it supports, can be found in the main thread - here

    Cvars:
    PHP Code:
    sm_brsc_version  //version cvar, dont touch
    sm_brsc_enabled 1 //enables/disables this plugin
    sm_brsc_type 1 //Who gets kicked out: 1 - Highest ping player, 2 - Longest connection time player, 3 - Random player
    sm_brsc_reason "Kicked to make room for an admin" //Reason used when kicking players 
    Installation:


    Credits:
    asherkin - for creating Connect
    pRED - for the original plugin

    Changelog:
    Attached Files
    File Type: sp Get Plugin or Get Source (basic_reserved_slots_using_connect.sp - 1624 views - 3.2 KB)
    __________________

    Last edited by luki1412; 10-03-2016 at 15:43. Reason: Explained how the plugin works better
    luki1412 is offline
    my11
    Member
    Join Date: Feb 2015
    Location: Argentina
    Old 08-12-2016 , 12:57   Re: [ANY] Basic Reserved Slots using Connect (11.08.2016)
    Reply With Quote #2

    but if don't want to kick a player, and just use the reserved slot for admin?
    __________________
    my11 is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 08-12-2016 , 14:43   Re: [ANY] Basic Reserved Slots using Connect (11.08.2016)
    Reply With Quote #3

    Quote:
    Originally Posted by my11 View Post
    but if don't want to kick a player, and just use the reserved slot for admin?
    It doesnt kick players if the server isnt full. There are no reserved slots. It kicks players when the server is full and an admin is trying to connect. Old style of reserved slots - all slots are used, but admins can still connect.
    __________________
    luki1412 is offline
    AbraCadabra
    Member
    Join Date: Aug 2013
    Old 08-13-2016 , 19:35   Re: [ANY] Basic Reserved Slots using Connect (11.08.2016)
    Reply With Quote #4

    Plugin can kick other admins/vip players (if server is full)? or he kick only players w/o privileges ?
    AbraCadabra is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 08-13-2016 , 20:47   Re: [ANY] Basic Reserved Slots using Connect (11.08.2016)
    Reply With Quote #5

    Quote:
    Originally Posted by AbraCadabra View Post
    Plugin can kick other admins/vip players (if server is full)? or he kick only players w/o privileges ?
    Looking at the code, the plugin dont kick root admins and admins with "a" flag (reservation access).
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 08-14-2016 , 09:07   Re: [ANY] Basic Reserved Slots using Connect (11.08.2016)
    Reply With Quote #6

    Quote:
    Originally Posted by AbraCadabra View Post
    Plugin can kick other admins/vip players (if server is full)? or he kick only players w/o privileges ?
    It ignores bots, root admins, admins with reservation flag or you can use sm_reskick_immunity override. Spectators are picked first.
    __________________

    Last edited by luki1412; 08-14-2016 at 09:09.
    luki1412 is offline
    Hinex
    Junior Member
    Join Date: Dec 2013
    Old 08-17-2016 , 05:26   Re: [ANY] Basic Reserved Slots using Connect (11.08.2016)
    Reply With Quote #7

    [SM] Unable to load extension "connect.ext": /home/whiskey/serverfiles/insurgency/addons/sourcemod/extensions/connect.ext.so: cannot open shared object file: No such file or directory
    [SM] Unable to load plugin "basic_reserved_slots_using_connect.smx": Required extension "Connect" file("connect.ext") not running
    Hinex is offline
    Cooky
    Veteran Member
    Join Date: Jun 2010
    Location: 127.0.0.1
    Old 08-17-2016 , 07:43   Re: [ANY] Basic Reserved Slots using Connect (11.08.2016)
    Reply With Quote #8

    Quote:
    Originally Posted by Hinex View Post
    [SM] Unable to load extension "connect.ext": /home/whiskey/serverfiles/insurgency/addons/sourcemod/extensions/connect.ext.so: cannot open shared object file: No such file or directory
    [SM] Unable to load plugin "basic_reserved_slots_using_connect.smx": Required extension "Connect" file("connect.ext") not running
    Read again and it will solve your problem...
    Cooky is offline
    Nolongerinthegame
    AlliedModders Donor
    Join Date: Sep 2005
    Old 08-22-2016 , 12:56   Re: [ANY] Basic Reserved Slots using Connect (11.08.2016)
    Reply With Quote #9

    Luki you can change your opening post so it shows Connect as a dependancy, just so its more clear (re above)

    Nice mod by the way.

    Last edited by Nolongerinthegame; 08-22-2016 at 12:56.
    Nolongerinthegame is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 08-23-2016 , 06:02   Re: [ANY] Basic Reserved Slots using Connect (11.08.2016)
    Reply With Quote #10

    Quote:
    Originally Posted by nelioneil View Post
    Luki you can change your opening post so it shows Connect as a dependancy, just so its more clear (re above)

    Nice mod by the way.
    Its in the description, name of the plugin, title of this thread and installation instructions. Wanted to add it in the plugin dependencies as well, but I need its ID. Only plugins seem to have IDs, so I cant.
    __________________
    luki1412 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 21:45.


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