- script KillAnnounce -1,{
OnPCKillEvent:
if(getgmlevel() >= 50) end;
if( killedrid == getcharid(3) ) end;
set @killstreak, @killstreak+1;
if (@killstreak == 1){
announce ""+strcharinfo(0)+" had just killed "+rid2name(killedrid)+" at "+strcharinfo(3)+".",bc_all;
}
else {
announce ""+strcharinfo(0)+" had just killed "+rid2name(killedrid)+" at "+strcharinfo(3)+".["+@killstreak+"]",bc_all;
}
attachrid killedrid;
if (@killstreak >= 2){
announce ""+rid2name(killedrid)+" had ended "+strcharinfo(0)+"'s ["+@killstreak+"] streak at "+strcharinfo(3)+".",bc_all;
set @killstreak,0;
}
if (@killstreak < 2){
set @killstreak,0;
}
end;
}
The problem with this is that, if A hit B but didn't kill him, then C killed B, the announcement would announce that A killed B instead of C killing B.. Anyone have any idea where did I did wrong? I'm quite new to scripting
Question
Craves
The problem with this is that, if A hit B but didn't kill him, then C killed B, the announcement would announce that A killed B instead of C killing B.. Anyone have any idea where did I did wrong? I'm quite new to scripting
Link to comment
Share on other sites
1 answer 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.