I guess u need replace here the maps u want to use for pvp stats, i'm no 100% sure, but maybe tonelli can correct me if i'm wrong
//==== On PvP Player Kill End ================================
- script pvppckilldie -1,{
OnInit:
set .MaxPlayers,25;
set .Options,4; // .Option,4; Bugged? - Implemented Fix [Needs Test]
setarray .@maps$[0],"aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05";
setarray .@maps$[5],"gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05";
setarray .@maps$[10],"payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05";
setarray .@maps$[15],"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05";
end;
OnPCKillEvent:
if(getgmlevel()<1) && (agitcheck() || agitcheck2()) {
if(.@maps$[0-20] == strcharinfo(3)){ end; }
else if(getgmlevel()<1) {
set pvpkillcount, pvpkillcount+1;
set pvpkillspree, pvpkillspree+1;
if(pvpkillcount>0) && (pvpdeathcount>0) { dispbottom "PvP Kill Count: "+pvpkillcount+", PvP Death Count: "+pvpdeathcount+", PvP KDR: "+callfunc("KDR_Calc", pvpkillcount, pvpdeathcount)+":1"; }
else if(pvpkillcount>0) && (pvpdeathcount==0) { dispbottom "PvP Kill Count: "+pvpkillcount+", PvP Death Count: "+pvpdeathcount+", PvP KDR: "+pvpkillcount+":1"; }
else if(pvpkillcount==0) && (pvpdeathcount>0) { dispbottom "PvP Kill Count: "+pvpkillcount+", PvP Death Count: "+pvpdeathcount+", PvP KDR: 0:"+pvpdeathcount+""; }
else { dispbottom "PvP Kill Count: "+pvpkillcount+", PvP Death Count: "+pvpdeathcount+", PvP KDR: 0:0"; }
for(set $pvppos,0; $pvppos < .MaxPlayers; set $pvppos,$pvppos+1){
if(pvpkillcount>$pvpxrank[$pvppos]){
if($pvpxrank$[$pvppos] != strcharinfo(0)){
setarray $pvpxrank$[$pvppos+1],$pvpxrank$[$pvppos];
setarray $pvpxrank[$pvppos+1],$pvpxrank[$pvppos];
}
setarray $pvpxrank$[$pvppos],strcharinfo(0);
setarray $pvpxrank[$pvppos],pvpkillcount;
if($pvppos<=1){ $pvppos = 1; sleep 1; end; }
else if(.Options&4) { announce ""+strcharinfo(0)+" Now Holds Rank "+$pvppos+" on the PvP Ladder",bc_all; }
}
} sleep 1; }}
end;
} //=== On PvP Player Kill End ===============================
//==== On PvP Player Death ===================================
- script pvppcdiekilled -1,{
OnInit:
setarray .@maps$[0],"aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05";
setarray .@maps$[5],"gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05";
setarray .@maps$[10],"payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05";
setarray .@maps$[15],"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05";
end;
OnPCDieEvent:
if(getgmlevel()<1) && (agitcheck() || agitcheck2()) {
if(.@maps$[0-20] == strcharinfo(3)){ end; }
else if ( killerrid < 100000000 ) && (getgmlevel()<1) {
announce rid2name(killerrid) + " just killed " + strcharinfo(0) + "!",bc_all;
message rid2name(killerrid),"You just killed " + strcharinfo(0) +"!";
set pvpdeathcount, pvpdeathcount+1;
if(pvpkillspree>xpvpspree) set xpvpspree, xpvpspree = pvpkillspree;
pvpkillspree = 0;
dispbottom "PvP Death Count is now "+pvpdeathcount+", and PvP Killing Spree Reset.";
end;
}}
} //=== On PvP Player Death End ==============================