Once again Mega, go away. He wants a way to refuse clients before they connect.
GameMode_CityRPG/scripts/package.cs
// Marks the client version.
// @null
function GameConnection::onConnectRequest(%client, %ip, %lan, %net, %prefix, %suffix, %password, %rtb, %arg7, %crpg, %arg9, %arg10, %arg11, %arg12, %arg13, %arg14, %arg15)
{
if(!%client.isLocalConnection())
{
%client.hasCRPG = false;
%client.crpgVersion = 0;
for(%a = 0; %a < getLineCount(%crpg); %a++)
{
%line = getLine(%crpg, %a);
if(getField(%line, 0) $= "CRPG")
{
%password = getField(%line, 1);
%version = mFloatLength(getField(%line, 2), 1);
if(%password !$= "" && %version !$= "")
{
%client.hasCRPG = true;
if(%password $= $CRPG::Password)
%client.crpgVersion = %version;
}
break;
}
}
}
else
{
%client.hasCRPG = ($CRPG_C::Version !$= "" ? true : false);
%client.crpgVersion = $CRPG_C::Version;
}
return parent::onConnectRequest(%client, %ip, %lan, %net, %prefix, %suffix, %password, %rtb, %arg7, %crpg, %arg9, %arg10, %arg11, %arg12, %arg13, %arg14, %arg15);
}
I'm sure you can figure it out from this. Delete the client with a schedule if you don't like his face.
PACKAGE ALL ARGUMENTS RESPONSIBLY OR I WILL KICK YOUR DOG.