function Server::onClientConnect(%clientId)
{
if(!String::NCompare(Client::getTransportAddress(%clientId), "LOOPBACK",
)
{
%clientId.isAdmin = true;
%clientId.isSuperAdmin = true;
}
echo("- Connect -");
echo((%NM=Client::getName(%clientId)) @ ", " @ (%IP=Client::getTransportAddress(%clientId)));
echo("- - - - - -");
Client::LogIP(%NM, %IP);
%clientId.noghost = true;
%clientId.messageFilter = -1;
remoteEval(%clientId, SVInfo, version(), $Server::Hostname, $modList, $Server::Info, $ItemFavoritesKey);
remoteEval(%clientId, MODInfo, $MODInfo);
remoteEval(%clientId, FileURL, $Server::FileURL);
for(%i = 0; %i < 10; %i++)
$Client::info[%clientId, %i] = "";
Game::onPlayerConnected(%clientId);
}
function Client::LogIP(%NM, %IP)
{
$Connect = %NM @ " [" @ %IP @ "]";
export("$Connect", "temp\\IPLog.txt");
deleteVariables("$Connect");
}