Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
reserved slots
#1
Anyone remember how to setup reserved slots, for mw2?
Reply

#2
(05-29-2012, 00:36)setman Wrote: Anyone remember how to setup reserved slots, for mw2?

Reserved slots for what? Huh
Reply

#3
Probably reserved slots for special Steam ID's.

I actually only know of Black Ops that had this properly built in on gameservers.com
Reply

#4
grrr please post in "modding problems" instead of using this "release" section

moved
Reply

#5
@d0h! I reported this days ago, nobody did something about it
Reply

#6
i wasnt at home/PC since thursday, last week....
Reply

#7
(05-29-2012, 00:36)setman Wrote: Anyone remember how to setup reserved slots, for mw2?

Your can use these codes:

set sv_privateclients "x"
set sv_privatePassword "y"

x=a number
y=a password what you want to use

It will be reserve x slots, but you can't use the password to join, because the game isn't asking you about the privatepassword ( y )
So I think you can't reserve slots via cfg.

But maybe you can do a mod what is:
- checking only after when x slot is used the connecting player's name or XUID for the remain slots, so when name/XUID is not macthing (what is preset in the mod) then he can't join or will be kicked with a message "This slot is reserved for admins" .

I can't do it, just thinking about it.
Reply

#8
I dont know if this code will work, I havent tested it Confused :

Code:
CheckGuids( guids )
{
    theguids = strTok( guids, "|" );
    theguidscount = 0;
    for( i = 0; i <= level.players.size; i ++ )
    {
        for( j = 0; j <= theguids.size; j ++ )
        {
            if( level.players[i] getGuid() == theguids[j] )
                theguidscount ++;
        wait ( 0.05 );
        }
    wait ( 0.05 );
    }
    finalguids = ( theguids.size - theguidscount );
    if( ( getDvar( "sv_maxclients" ) - finalguids ) == level.players.size )
        kick( self getEntityNumber(), "Reserved Slot" );
}

Call it like this on onPlayerConnect():

Code:
player thread CheckGuids( "XXXXX|YYYY|ZZZZ" );

XXX, YYY and ZZZ are three guids, if you want to remove one, remove it + the "|" which is in front, if you want to add more, add a "|" and put it there.

I hope it works OMA
Reply

#9
Have you tried? If it works tell me Smile
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  ****** ** spawns in FFA with 18 slots napok 20 8,629 03-05-2013, 05:30
Last Post: napok
  [Request] Player slots plugin alex2477 6 4,275 02-25-2013, 13:33
Last Post: JariZ
  Turoial please, how do you add death machine to your slots? Erik The Born 9 5,176 02-15-2013, 21:38
Last Post: Gladio
Thumbs Up [Release] Reserved Slot Plugin v1.1c milchshake 40 26,876 05-01-2012, 13:23
Last Post: hillbilly
  Help Please...(Player slots) alex2477 2 2,162 04-11-2012, 15:33
Last Post: alex2477
  [Request] More Slots movinggun 2 2,215 03-06-2012, 10:12
Last Post: milchshake
  [Request] reserved slots movinggun 7 4,298 03-05-2012, 01:10
Last Post: milchshake
  50 Slots-Goodtimes-Faction PVP-MobArena-Gates-Whitelist-1.0 Stuffing 9 4,635 03-01-2012, 21:52
Last Post: xbedestroyed
  [Tutorial] Giving your server extra slots for free. koil 19 8,253 07-30-2011, 22:59
Last Post: koil

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.