viewing paste Script Anti Triple Login | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
-   script  AntiDual    -1,{
    end;
    
OnPCLoginEvent:
    .@data = query_sql("select `char`.account_id from `char` right join login on login.account_id = `char`.account_id where `char`.online = 1 and login.last_unique_id = '"+ 
    get_unique_id() +"'", .@login_count);
    
    if (.@data > .max_client) {
        message strcharinfo(0), .@data+" login detected from this pc";
        if (getgroupid() == 99) end;
        sleep2 3333;
        message strcharinfo(0), "You will be kicked out in a moment";
        sleep2 3333;
        message strcharinfo(0), "contact administrator if you think this is false";
        sleep2 3333;
        atcommand "@kick "+strcharinfo(0);
    }
    end;
 
OnInit:
    .debug = 1; // 1 = On, 0 = Off
    .max_client = 3; // how much client allowed to login from same pc
    end;
}
Viewed 1452 times, submitted by kazeharuku.