gonryun,158,114,5 script Pvp Event 884,{
if( Class == Job_Novice ){ mes "Novice cant join."; close; }
mes "[ Pvp Event ]";
mes "Hi " + strcharinfo(0) + ", What can I do for you?";
next;
mes "-----^008000Pvp Event MAP INFO^000000----";
mes "There are currently [^008800"+getmapusers("pvp_n_1-5")+"^000000] players on map";
next;
menu "Register",-,"What is Pvp Event?",what,"Leave",leave;
next;
mes "[Pvp Event]";
.@myaid = getcharid(3);
while( .@i < .size_reg && .reg_aid[.@i] != .@myaid ) .@i++;
if ( .@i == .size_reg ) {
.@ip$ = getcharip();
while( .@j < .size_reg && .reg_ip$[.@j] != .@ip$ ) .@j++;
if ( .@j == .size_reg ) {
.reg_aid[ .size_reg ] = .@myaid;
.reg_ip$[ .size_reg ] = .@ip$;
.size_reg++;
}
else {
mes "^FF0000Sorry there is someone with the same ip in this event.^000000";
close;
}
}
mes "Thankyou for registering Mr. " + strcharinfo(0) + ", Have fun!";
warp "pvp_n_1-5",0,0;
end;
Can someone help me make this script that can show player name with same ip is in this event.