@Emistry , I only have 1 script for this pvp announcer.. what do you mean by loaded it several times? Sorry, I'm quite new on these stuffs..
@Aerie , Erm..it doesn't fix it..it still announces 3 times when I only kill the opponent once..
This is the edited script..
- script C_login -1,{
OnInit:
setarray $pvpmap$[0],"izlude";
OnPCKillEvent:
getmapxy .@map$, .@x, .@y, 0;
for( set .@i, 0; .@i < getarraysize($pvpmap$); set .@i, .@i +1 )
if (@map$ == $pvpmap$[.@]) {
set @killstreak, @killstreak + 1;
if (@killstreak <= 3) {announce ""+strcharinfo(0)+" had just killed "+rid2name(killedrid)+" at "+strcharinfo(3)+".",bc_map;}
if (@killstreak >= 3) {announce ""+strcharinfo(0)+" had just killed "+rid2name(killedrid)+" at "+strcharinfo(3)+".["+@killstreak+"]",bc_all;}
}
OnPCDieEvent:
getmapxy @map$,@x,@y,0;
for( set .@i, 0; .@i < getarraysize($pvpmap$); set .@i, .@i +1 )
if (@map$ == $pvpmap$[.@i]) {
if (@killstreak >= 3) {announce ""+rid2name(killedrid)+" had just ended "+strcharinfo(0)+"'s ["+@killstreak+"] streak at "+strcharinfo(3)+".",bc_all;}
set @killstreak,0;
}
}
Any idea what seems to be the problem?
Thank you for you helps I found out a way to make it work..as simple as i wanted Thanks guys..