This is my security code to prevent player to enter in a Game Event with two accounts in the same ip
.@query_result = 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); if ( .@query_result > 1 && compare( $whiteList$,getcharid(3) +"" ) == 0 ) { mes "[AVISO]"; mes "Você não poderá acessar as funções deste npc enquanto houverem mais de 1 conta conectada no mesmo IP. Foram encontrados "+ .@query_result +" registros."; end; }
But, some players are using autotrade...I won't count the Autotraders.