kac_client_antispamconnect request
Posted: Sat Nov 13, 2010 4:04 pm
Kigen, please modify default sourcecode of client.sp to something like this to let some peaple from the same lan to connect to the server.
In this case there could be tree clients from one lan ant neither of them will be kicked on map change.
This is a serious exploit to crash server and with this mod and kac_client_antispamconnect high enought, I think, it'll still get it's job done.
Code: Select all
new iClientConnectionsCount = 0;
for(new i=0;i<MAX_CONNECTIONS;i++)
{
if (StrEqual(g_sClientConnections[i], f_sClientIP))
iClientConnectionsCount++;
if (iClientConnectionsCount > 3)
{
Format(rejectmsg, size, "Please wait one minute before retrying to connect");
BanIdentity(f_sClientIP, 1, BANFLAG_IP, "Spam Connecting"); // We do not want this hooked, so no source.
return false;
}
}
This is a serious exploit to crash server and with this mod and kac_client_antispamconnect high enought, I think, it'll still get it's job done.