I have a problem with this script I found here source
I want to disable DUAL login using last_mac but I need to exclude the check on players in vending and @at mode.
How can I modify this script?
- script Only1perMAC -1,{OnPCLoginEvent: if (getgmlevel() >= 99) end; set .@name$, strcharinfo(0); if (query_sql("SELECT `char`.`name` FROM `char` LEFT JOIN login ON `char`.account_id=login.account_id WHERE login.last_mac=(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 .@samemac, .@samemac +1; } if (.@samemac >= 1) { announce "Sorry, only 1 account per computer can be logged in at a time.", bc_self; sleep 1000; atcommand "@kick " + .@name$; } } end;}
I have a problem with this script I found here source
I want to disable DUAL login using last_mac but I need to exclude the check on players in vending and @at mode.
How can I modify this script?
Thank you!
Share this post
Link to post
Share on other sites