How do i set this to only certain map. this part of script is from Ghost_PVP. I want to limit the players to only WOE maps and PVP rooms only to avoid abuse.
OnPCKillEvent:
if($icaSystem)
{
freeloop(1);
if(getgmlevel() >= $icaGMLevel){ end; }
if($icaPvPMap$[0] != "All"){
for(set .@i, 0; .@i < (getarraysize($icaPvPMap$) - 1); set .@i, .@i + 1){
if(strcharinfo(3) != $icaPvPMap$[.@i]){ end; }
}
}
set #killed$,rid2name(killedrid);
for(set .@i, 0; .@i <= 127; set .@i, .@i + 1)
{
if (@killed$[.@i]=="none")
{
set @killed$[.@i],#killed$;
set @mcountss[.@i],1;
dispbottom "You have killed: "+@killed$[.@i]+" for "+@mcountss[.@i]+" time/times already";
break;
}
else if (@killed$[.@i]==#killed$)
{
set @mcountss[.@i],@mcountss[.@i]+1;
dispbottom "You have killed: "+@killers$[.@i]+" for "+@mcountss[.@i]+" time/times already";
if (@mcountss[.@i]>=$icapaybackperiod) {dispbottom "Give that BITCH! some more!";}
break;
}
else if (.@i== 127){break;}
}
Question
cross10hunter
How do i set this to only certain map. this part of script is from Ghost_PVP. I want to limit the players to only WOE maps and PVP rooms only to avoid abuse.
OnPCKillEvent:
if($icaSystem)
{
freeloop(1);
if(getgmlevel() >= $icaGMLevel){ end; }
if($icaPvPMap$[0] != "All"){
for(set .@i, 0; .@i < (getarraysize($icaPvPMap$) - 1); set .@i, .@i + 1){
if(strcharinfo(3) != $icaPvPMap$[.@i]){ end; }
}
}
set #killed$,rid2name(killedrid);
for(set .@i, 0; .@i <= 127; set .@i, .@i + 1)
{
if (@killed$[.@i]=="none")
{
set @killed$[.@i],#killed$;
set @mcountss[.@i],1;
dispbottom "You have killed: "+@killed$[.@i]+" for "+@mcountss[.@i]+" time/times already";
break;
}
else if (@killed$[.@i]==#killed$)
{
set @mcountss[.@i],@mcountss[.@i]+1;
dispbottom "You have killed: "+@killers$[.@i]+" for "+@mcountss[.@i]+" time/times already";
if (@mcountss[.@i]>=$icapaybackperiod) {dispbottom "Give that BITCH! some more!";}
break;
}
else if (.@i== 127){break;}
}
Link to comment
Share on other sites
3 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.