- 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;
}