$Pref::Server::MaxPlayers = 100Enter this in the console.
$Pref::Server::MaxPlayers = 100
Thats wrong. its$Pref::Server::MaxPlayers=64;
The number does not matter, it matters for how many people your server can hold.
The semi-colon.
Does the server have to be dedicated to do this?
No, not really, but dedicated servers are almost always better than a client-server.