Advertisement
existence_dev92

Anti Dual Client Gepard

Apr 15th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. - script AntiDual -1,{
  2. end;
  3.  
  4. OnPCLoginEvent:
  5. query_sql("select 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);
  6. if (.debug && .@login_count) {
  7. dispbottom "Login count in this unique id ("+get_unique_id()+"): "+.@login_count;
  8. }
  9. if (.@login_count > .max_client)
  10. atcommand "@kick "+strcharinfo(0);
  11. end;
  12.  
  13. OnInit:
  14. .debug = 1; // 1 = On, 0 = Off
  15. .max_client = 3; // how much client allowed to login from same pc
  16. end;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement