[CODE]
morocc,174,93,3 script porwarp 723,{
query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@LastIp$);
query_sql("SELECT account_id FROM `login` WHERE last_ip = '"+.@LastIp$+"'", .@AccountId);
set .@aidtemp,getcharid(3);
set .@size,getarraysize(.@AccountId);
for(set .@i ,0;.@i<.@size;set .@i,.@i+1)
{
if(attachrid(.@AccountId[.@i]))
if (strcharinfo(3)== "poring_w02") set .@j,.@j+1;
detachrid;
}
attachrid .@aidtemp;
if(.@j >= 1){
mes "^FF0000Sorry Can't Warp You!^000000";
close;
}
warp "poring_w02",100,201;
close;
}
[/CODE]
i want 1 ip to this map region_4
49 51
if same ip will be auto kick ok