- script Only1perMAC -1,{
OnPCLoginEvent:
if (getgmlevel() >= 99) end;
set .@myname$, strcharinfo(0);
if (query_sql("SELECT `char`.`name` FROM `char` LEFT JOIN login ON `char`.account_id=login.account_id WHERE login.last_ip=(SELECT last_mac FROM login WHERE account_id="+getcharid(3)+") AND `char`.online=1 AND `char`.char_id!="+getcharid(0), .@name$) >= 1) {
for (set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i+1) {
if (checkvending(.@name$[.@i]) != 2)
set .@sameip, .@sameip +1;
}
if (.@sameip >= 1) {
announce "Sorry, only 1 account per ip can be logged in at a time.", bc_self;
sleep 1000;
atcommand "@kick " + .@myname$;
}
}
end;
}
help about this script.. what should i edit to make it 1 account per ip add? coz its 2 account per ip >.< tia
Question
Dejavu
help about this script.. what should i edit to make it 1 account per ip add? coz its 2 account per ip >.< tia
Link to comment
Share on other sites
3 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.