i have a problem.. i'm using this script...works fine, if 2 acc login, the last is kicked.
I need to identify the two accounts, but do not count the @AT merchants.
if i have 10 @at merchants, and 2 online accounts..only 2 online will be checked. and 1 kicked.
- script Only2perIP -1,{
OnPCLoginEvent:
if(getgmlevel()<=99){
end;
} else {
set .@name$, strcharinfo(0);
if (query_sql("SELECT login.account_id FROM login LEFT JOIN `char` ON login.account_id=`char`.account_id WHERE login.last_ip=(SELECT last_ip FROM login WHERE
account_id="+getcharid(3)+") AND `char`.online=1", .@account_id) > 1) {
announce "Sorry, only 2 accounts per IP are allowed!", bc_self;
Question
eliandrotc
hi guys.
i have a problem.. i'm using this script...works fine, if 2 acc login, the last is kicked.
I need to identify the two accounts, but do not count the @AT merchants.
if i have 10 @at merchants, and 2 online accounts..only 2 online will be checked. and 1 kicked.
- script Only2perIP -1,{
OnPCLoginEvent:
if(getgmlevel()<=99){
end;
} else {
set .@name$, strcharinfo(0);
if (query_sql("SELECT login.account_id FROM login LEFT JOIN `char` ON login.account_id=`char`.account_id WHERE login.last_ip=(SELECT last_ip FROM login WHERE
account_id="+getcharid(3)+") AND `char`.online=1", .@account_id) > 1) {
announce "Sorry, only 2 accounts per IP are allowed!", bc_self;
sleep 1000;
atcommand "@kick " + .@name$;
}
end;
}
}
sorry for my bad english..
tks.
Link to comment
Share on other sites
16 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.