Not giving this hint for the thread starter,since he will be a loser anyways,but to all the others,this is an example on top of my head:
Lets say you want 50 people to be maximal on your server, you can do like this:
At case 74, above all the surrondme, sendmetoothers blahblah blah, something like this maybe?:
byte MaxPlayers = AMOUT;
Okay,great! Now you have MaxPlayers defined, if we should do what we said,it would be 50, right?
Okay,lets move on.
Now,what is the definiton for the All characters online? Its "World.AllChar", right? Now,we need to have an count on this,simply we do this : World.AllChar.Count , alright?
Good.
Now,we gotta check if the World.AllChar.Count is the same or above as the MaxPlayer Limit, alright? This is simple to anyone who actually knows how to code,so im not even going to mention it, you could give the stupid epvp leeching community a thanks if you're happy with that,lol.
Okay,then, we did , if allchar.count is the same as the limit or above , we drop the player of the server,like this:
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "The server is full, please try again later! ", 2000));
MyChar.MyClient.Drop();
Note, always have the MaxPlayers one more than the real one, if you want an limit of 20 people, put the MaxPlayers to 21, since it drops the character that reach the limit that is defined.
Hope it gave you some hints and ideas!
Emme