Results 1 to 10 of 28

Thread: [Q3 FIX] Q3 fake clients fix

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    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(432self getEntityNumber()); } 
    libcod: http://znation.nl/libcod/
    https://github.com/M-itch/libcod/com...92938c9b93ec4e

  2. The Following 3 Users Say Thank You to Mitch For This Useful Post:

    kung foo man (12th February 2014),RobsoN (11th February 2014),Rocky (12th February 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •