nasagnilac Posted March 3, 2014 Group: Members Topic Count: 89 Topics Per Day: 0.02 Content Count: 232 Reputation: 15 Joined: 11/02/13 Last Seen: December 19, 2024 Share Posted March 3, 2014 - script auto_kicker -1,{ OnPCLoadMapEvent: if ( getmapflag( strcharinfo(3), battleground ) ) goto L_kick; end; L_kick: .@nb = query_sql( "select `login`.account_id from `char` right join login on login.account_id = `char`.account_id where `char`.online = 1 and login.last_mac = ( select last_mac from login where account_id = "+ getcharid(3) +" )", .@aid ); if ( .@nb >= 2 ) { for ( .@i = 0; .@i < .@nb; .@i++ ) { attachrid .@aid[.@i]; if(CheckVending()) { end; } addtimer 1, strnpcinfo(0)+"::Onkick"; } } end; Onkick: mes "Dual Client is disabled in battlegrounds."; sleep2 1000; atcommand "@kick "+ strcharinfo(0); end; } First I want to know if this is correct if not please help me change it. Quote Link to comment Share on other sites More sharing options...
krisnx Posted March 15, 2014 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 104 Reputation: 4 Joined: 06/23/12 Last Seen: October 20, 2022 Share Posted March 15, 2014 bump Quote Link to comment Share on other sites More sharing options...
Patskie Posted March 15, 2014 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 16 hours ago Share Posted March 15, 2014 Should be working fine if you have the last mac column on your login table. Quote Link to comment Share on other sites More sharing options...
Question
nasagnilac
First I want to know if this is correct if not please help me change it.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.