This is my fix. It requires my libcod version with lastmsg.
PHP 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());
}
}
std\player
PHP Code:
getLastMsg() { return closer(432, self getEntityNumber()); }
libcod: http://znation.nl/libcod/
https://github.com/M-itch/libcod/com...92938c9b93ec4e