[Request] So that only a certain amount of people can join your server.
Discussion on [Request] So that only a certain amount of people can join your server. within the CO2 Private Server forum part of the Conquer Online 2 category.
if (World.AllChars.Count == 70)
{
Console.WriteLine("Server is now full last space = " + MyChar.Name);
World.SendMsgToAll(MyChar.Name + " Got the last space The Server is now full", "SYSTEM", 2011);
}
if (World.AllChars.Count >= 71)
{
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "The server is full please try later", 2000));
Console.WriteLine(MyChar.Name + " Attempted to login server full");
MyChar.MyClient.Drop();
}
EDIT : 70 players is just an example you could change that if you like to ^^
I did post this in another thread, but just as turk55 got from KinshiCO source, lol. Copy+Paste ftw huh?
anyways, this is how you do it:
Search for the login text of the server, probably under Main() ****. Add a bool,
if (!World.AllChar.Count >= AMOUNT OF PLAYER)
{
Rest of the code here, e.g send packets to surrond players/you, etc etc
}
If you want the player's client to give a message before logging in, like instead of "Currupted blabla" it can say "Server is full" , I also posted that. Use search funcion.
I did post this in another thread, but just as turk55 got from KinshiCO source, lol. Copy+Paste ftw huh?
hell no i didnt got it from kinshico source, i just remembered ure treath about it >_>
i added that into the source im using now and copy+paste it then ffs....
Why people doesn't join Pservers .. ? 12/20/2009 - EO PServer Hosting - 19 Replies Why people doesn't join Pservers .. ?
There is an something like 15 k players .. at TQ
Rank Server Players
1 LA/LasVegas 4984
2 Toronto/Sydney 3655
3 NewYork 3137
4 London 2667
5 Birmingham 952
[New]Server is Up Join Today the 2 first People get 10K free nx!StarMS! 08/03/2009 - MapleStory - 4 Replies http://hotstepdancers.ho.funpic.de/StarMs%20BAnner .jpg
The first 2 people who playing at my server will get 10K Nx cash!
What is different with other servers?
Good Website
Online Support!
Another Npcs
Many Events
[Request]how to let other people join 06/10/2009 - CO2 Private Server - 2 Replies im having trouble letting other people join =[ what ports should i portforward and what ips should i put in packetprocessor
[help] Other people cant join my server 09/05/2008 - EO PServer Hosting - 13 Replies For some reason other people cannot join my server. And my register page isnt working, but that isnt as important right now. So..any suggestions?
Come On People Join My Server. 04/18/2008 - EO PServer Hosting - 42 Replies hello everyone...i think you have heard abou DarkDevilEO server...so if you want to join come here DarkDevilEO | ...
The drop rates are so high that in cata 1 monster drops 1 card EOCARD 270 which contains 300 eps...
Xp rates are normal...
Compsing rates are Higher Than Usual...at 80* increses about 20-30 points...
------------------------------------------------- ----------------------------
Please Come And Join...:D:p