View Full Version : sub letting server
Cyberdoc
06-26-2004, 08:28 PM
So we took the dive and are sub-letting a server from our big bad box in dallas. So far so good.
I want to give the "client" a ftp account to his cod/main, however, im trying to figure out how to do this whilst not giving him the ability to increase slots.....duh!! Any ideas's how the adults do it???
jdwright
06-26-2004, 10:45 PM
1) Exec his client amount after his config file on the server's command line.
./cod_lnxded +exec client.cfg +sv_maxclients 16
He can still change it with rcon, but thats where a AUP/TOS come into play.
Cyberdoc
06-27-2004, 03:39 PM
1) Exec his client amount after his config file on the server's command line.
./cod_lnxded +exec client.cfg +sv_maxclients 16
He can still change it with rcon, but thats where a AUP/TOS come into play.
adding +set sv_maxclients 20 is the route i thought of, but again as stated, he can always rcon a new amount. Anyone know how the pro's do it in managed servers.
MOMMA
06-28-2004, 12:23 AM
On ours we can change it as well, but if caught we would be in trouble by the company we rent from. So we leave it alone.
Cyberdoc
06-28-2004, 06:59 PM
funny, i talked to a repo from fiberfrag and he said, they just wirite a script that checks the slots, then shuts down the server if its not within the limits.........ok forget that, Im a gamer not a scripter.
jdwright
06-28-2004, 07:09 PM
That would be very simple to do in Linux w/ rcon.pl.
Just write a script to send a /rcon sv_maxclients to the server, it returns the setting and you check that against what its supposed to be. If its wrong, /rcon quit the server.
MOMMA
06-29-2004, 04:01 PM
If he has linux can you write him a script do do it?
jdwright
06-29-2004, 05:46 PM
Something like this would work providing you have the rcon pass. There is another way to get sv_maxclients (using getstatus like ASE/Gamespy/Websites use) but I dont have anything pre-written to use that function. That would be the ideal way, because them changing the rcon pass wouldn't affect your script.
#!/bin/sh
SERVERIP=127.0.0.1
SERVERPORT=28960
RCONPASS=testing
MAXCLIENTS="./rcon.pl -s $SERVERIP -o $SERVERPORT -p $RCONPASS -c sv_maxclients"
ASSSLOTS=20
ACTSLOTS=`$MAXCLIENTS |awk -F: '{ print $2 }'| head -c 3 |tail -c 2`
if [ $ACTSLOTS -gt $ASSSLOTS ]
then
echo "Uh-oh someone is trying to steal slots $ACTSLOTS"
#Shut down server
else
echo "Clients in check $ACTSLOTS"
fi
That would also probably break if they had a 1 digit sv_maxclients, you could just adjust the head/tail commands to accomodate for that.
Cyberdoc
06-29-2004, 06:16 PM
Much appriciate the time, however, our box is a windows server, not linux. For now Im gonna have to give them acces to the main, an just monitor from ase/ig browser or whatever. If anyone here's of a way to do it, drop me a line.
gg's all cyberdoc@allaboutnothing.net
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.