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

admin slot reservation


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ssproxima
Senior Member
Join Date: Jan 2015
Old 04-14-2015 , 05:34   admin slot reservation
Reply With Quote #1

Hi all,
I want an admin slot reservation plugin which kick player when an admin enters only and not when there is no admin on server.I have the standard adminslot.amxx but when i reserve the slot that slot remains empty even if no admin is online. Plz help me fast.

Last edited by ssproxima; 04-14-2015 at 05:36.
ssproxima is offline
pUnk
Member
Join Date: Apr 2009
Old 04-14-2015 , 06:37   Re: admin slot reservation
Reply With Quote #2

in that case you could edit your plugin to hide that slot so that admins get to use the "connect xxx.xxx.xxx:xxxx" command in the console to enter the server, just scroll down the amxx.cfg file (addons/amxmodx/configs/amxx.cfg) for more information.

Last edited by pUnk; 04-14-2015 at 06:40.
pUnk is offline
ssproxima
Senior Member
Join Date: Jan 2015
Old 04-14-2015 , 09:11   Re: admin slot reservation
Reply With Quote #3

See I just want a plugin that will do it and I don't want my servers slot be reduced by one in visibility nor do I want my admins to manually connect to server using console please provide me the link of such plugin as I am not getting it.
ssproxima is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-14-2015 , 09:20   Re: admin slot reservation
Reply With Quote #4

It's not possible to connect to a full server. So, you have to have a free slot (visible or hidden).
__________________
fysiks is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 04-14-2015 , 11:15   Re: admin slot reservation
Reply With Quote #5

If Server is full
you can do by kick random or high ping player while admin connecting to server

Edit: its already made by someone kindly search in the suggestions/request
__________________
Thanks everyone. #miss_you_all

Last edited by indraraj striker; 04-14-2015 at 11:17.
indraraj striker is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-14-2015 , 19:16   Re: admin slot reservation
Reply With Quote #6

Quote:
Originally Posted by indraraj striker View Post
If Server is full
you can do by kick random or high ping player while admin connecting to server

Edit: its already made by someone kindly search in the suggestions/request
You CANNOT connect to a server that is actually full. It's just not possible for a plugin to know that someone is trying to connect. And empty or hidden (and unused) slot is required.
__________________

Last edited by fysiks; 04-14-2015 at 19:17.
fysiks is offline
ssproxima
Senior Member
Join Date: Jan 2015
Old 04-15-2015 , 01:10   Re: admin slot reservation
Reply With Quote #7

Ok got it, thank you very much all of you for supporting and helping me to understand this

Last edited by ssproxima; 04-15-2015 at 01:11.
ssproxima is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 04-15-2015 , 01:50   Re: admin slot reservation
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
You CANNOT connect to a server that is actually full. It's just not possible for a plugin to know that someone is trying to connect. And empty or hidden (and unused) slot is required.
You could use an external solution like a webscript which is only accessable to admins (using a password or check their SteamID via "Login with Steam") to kick a player and "lock" it for an admin.
__________________
Kia is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 04-15-2015 , 08:29   Re: admin slot reservation
Reply With Quote #9

Quote:
Originally Posted by fysiks View Post
You CANNOT connect to a server that is actually full. It's just not possible for a plugin to know that someone is trying to connect. And empty or hidden (and unused) slot is required.
What about this ? i think its work recently posted by Flicker
PHP Code:
#include <amxmodx>
#include <amxmisc>

new g_iMaxPlayers

public plugin_init() 
{
    
register_plugin("Plugin Pauser""1.0""Flicker")
    
g_iMaxPlayers get_maxplayers()
}

public 
client_connect(id)
    if(
is_user_admin(id) && get_playersnum() == g_iMaxPlayers)
        
kickRandomPlayer()

stock kickRandomPlayer()
{
    new 
players[32], num
    get_players
(playersnum"h")
    
    if(!
num)
        return -
1
        
    
new rand players[random(num)]
        while(
is_user_admin(rand))
                
rand players[random(num)]
    
server_cmd("kick #%d ^"An admin wants to connect!^""get_user_userid(rand))
    
    return 
1

__________________
Thanks everyone. #miss_you_all
indraraj striker is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-15-2015 , 08:35   Re: admin slot reservation
Reply With Quote #10

Quote:
Originally Posted by indraraj striker View Post
What about this ? i think its work recently posted by Flicker
PHP Code:
#include <amxmodx>
#include <amxmisc>

new g_iMaxPlayers

public plugin_init() 
{
    
register_plugin("Plugin Pauser""1.0""Flicker")
    
g_iMaxPlayers get_maxplayers()
}

public 
client_connect(id)
    if(
is_user_admin(id) && get_playersnum() == g_iMaxPlayers)
        
kickRandomPlayer()

stock kickRandomPlayer()
{
    new 
players[32], num
    get_players
(playersnum"h")
    
    if(!
num)
        return -
1
        
    
new rand players[random(num)]
        while(
is_user_admin(rand))
                
rand players[random(num)]
    
server_cmd("kick #%d ^"An admin wants to connect!^""get_user_userid(rand))
    
    return 
1

No, it will not work. client_connect() will never be called if the server is full. The only workaround is what Kia mentioned (which you could easily do just by using HLSW).
__________________

Last edited by fysiks; 04-15-2015 at 08:37.
fysiks 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 05:21.


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