viewing paste Unknown #591 | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
prontera,155,181,5  script  Sample  757,{
setarray .@Map$[0],"pvp_y_1-1","pvp_y_1-2";
 
mes "Select your room";
set .@i,select("Room 1 ["+getmapusers(.@Map$[0])+"/50]:Room 2 ["+getmapusers(.@Map$[1]+"]"/50)) - 1;
if( getmapusers( .@Map$[.@i] ) >= 50 ){
    mes "Sorry, room Full.";
    close;
}else
    warp .Map$[.@i],0,0;
end;
 
OnPCKillEvent:
for( set .@i,0; .@i < getarraysize( .@Map$ ); set .@i,.@i + 1 )
    if( strcharinfo(3) == .@Map$[.@i] ){
        announce "["+strcharinfo(0)+"] has killed ["+rid2name(killedrid)+"] in "+strcharinfo(3),0;
        break;
    }
end;
}
Viewed 2168 times, submitted by Emistry.