This is my fix. It requires my libcod version with lastmsg.
std\playerPHP Code:kickFakeClients()
{
self endon("begin");
wait 15;
lastmsg = std\player::getLastMsg();
if(lastmsg > 50000)
{
ip = std\player::getIP();
iprintln(self.name + "^7 connection timeout.");
std\io::println("[CONNECTION TIMEOUT]: " + self.name + " (" + ip + ")");
kick(self getEntityNumber());
}
}
libcod: http://znation.nl/libcod/PHP Code:getLastMsg() { return closer(432, self getEntityNumber()); }
https://github.com/M-itch/libcod/com...92938c9b93ec4e




Reply With Quote