AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] admin slot with server full (https://forums.alliedmods.net/showthread.php?t=102916)

THC 09-07-2009 11:03

[REQ] admin slot with server full
 
i need plugin slot with aut rezerved slot so players can join 18/18
and when admins try tu connect on server tu kick 1 players any or if is possible tu kick 1 players with high lag or same with lowest score .

thanks

sory for my english

soolt 09-07-2009 11:24

Re: [REQ] admin slot with server full
 
I need too.Great idea ;]

mplayerexe 09-07-2009 11:25

Re: [REQ] admin slot with server full
 
not possible

crazyeffect 09-07-2009 11:55

Re: [REQ] admin slot with server full
 
Are you sure it isn't possible?

Maybe it is?

THC 09-07-2009 12:13

Re: [REQ] admin slot with server full
 
"isn't possible?"

why not?

Trafalete 09-07-2009 15:08

Re: [REQ] admin slot with server full
 
wow...just use hidden reserved slots...that should help a bit

THC 09-07-2009 16:31

Re: [REQ] admin slot with server full
 
but this server is not on my computers if i reserve 1 slot and i hide i have 17 slots and 9 vs 8 players is not solution
for my server now i dont have plugin for admin_slot but is veri hard tu connect on my server is full al time
i dont need tu hide same slots i need plugin for slot admins with server full

sory for my bad english

THC 09-08-2009 10:15

Re: [REQ] admin slot with server full
 
i need tu know is possible tu make this plugin or not ?????????

One 09-08-2009 10:43

Re: [REQ] admin slot with server full
 
Quote:

Originally Posted by THC (Post 926749)
i need tu know is possible tu make this plugin or not ?????????

nop.

why? cuz u must check when an admin joins in full server u have to kick a player. when the server is full & the player cant join, u cant check if the player is an admin or not. so u cant kick a Random player or somthing else. u can first check if a player is admin when player is connected to the server.

pirvu 09-08-2009 12:55

Re: [REQ] admin slot with server full
 
PHP Code:

#include <amxmodx>

new g_MaxPlayers

public plugin_init()
{
   
g_MaxPlayers get_maxplayers()
}

public 
client_connect(id)
{

   new 
lol=get_playersnum(1);
   if (
lol>g_MaxPlayers-1)
   if(
get_user_flags(id) & ADMIN_RESERVATION)
   {
      new 
kickPlayer=0;
        
      for(new 
pinglosshighestPing=01<= g_MaxPlayersp++)
      {
         if(
is_user_connected(p) && !is_user_bot(p) && !is_user_hltv(p))
         {
            
get_user_ping(ppingloss)

            if(
ping highestPing)
            {
               
kickPlayer id
               highestPing 
ping
            
}
         }
      }

      if(
kickPlayer)
         
server_cmd("kick #%d "get_user_userid(kickPlayer))
   }


Some1 tell me if it works :>?


All times are GMT -4. The time now is 16:53.

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