Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script AntiDual -1,{
- end;
- OnPCLoginEvent:
- 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);
- if (.debug && .@login_count) {
- dispbottom "Login count in this unique id ("+get_unique_id()+"): "+.@login_count;
- }
- if (.@login_count > .max_client)
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement