Hello i don't know whos the author of this script i just found it somehwere and i can't remember.
Yeah there's a problem in this script, it should be in a map. because when i try it ingame, i set it to geffen
when i teleport to geffen it pop-up the message although the player is only 1 in the map, and the other player is in the prontera.
And also it pop-up in my mapserv when it message.
- script IPCheckSystem -1,{
OnPCLoadMapEvent:
if( strcharinfo(3) == .Map$ ){
query_sql( "SELECT `last_ip` FROM `login` WHERE account_id="+getcharid(3)+"",.@IP );
query_sql( "SELECT `account_id` FROM `login` WHERE last_ip="+.@IP+"",.@Accountlist );
for( set .@i,0; .@i < getarraysize( .@Accountlist ); set .@i,.@i + 1 )
if( isloggedin( .@Accountlist[.@i] ) )
set .@DetectedOnline,.@DetectedOnline + 1;
if( .@DetectedOnline > .Limit ){
mes "We detected there is "+.@DetectedOnline+" Users with same IP Logged in.";
mes "Please log off these unused account.";
close2;
warp "savepoint",0,0;
}
}
end;
OnInit:
set .Limit,1; // How many User with Same IP can logged in and stay at the specific map
set .Map$,"geffen"; // What map will be restricted
setmapflag .Map$,mf_loadevent;
end;
}
Question
Azeroth
Hello
i don't know whos the author of this script i just found it somehwere and i can't remember.
Yeah there's a problem in this script, it should be in a map. because when i try it ingame, i set it to geffen
when i teleport to geffen it pop-up the message although the player is only 1 in the map, and the other player is in the prontera.
And also it pop-up in my mapserv when it message.
Thank you in advance
Edited by Azeroth2 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.