So do you want it to give them points or do you not want it to give them points?
|
HEY GUYS i been trying to fix this for some time but it wont work.
here is the code:
for some reason it allways keeps on saying this mesage "You do not recieve pk points because you have killed " +c.playerName+ " twice in a row." even though i killed once. and i never get the pkp.. please help me! i'll rep!public void applyDead() {
c.respawnTimer = 15;
c.isDead = false;
Client o = (Client) Server.playerHandler.players[c.killerId];
if(c.duelStatus != 6) {
c.killerId = findKiller();
if(o != null) {
c.playerKilled = c.playerId;
if(o.duelStatus == 5) {
o.duelStatus++;
}
if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled && c.duelStatus == 0) {
o.pkPoints = (o.pkPoints + 4);
o.sendMessage("You recieved 4 pkPoints");
o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom;
} else {
o.sendMessage("You do not recieve pk points because you have killed " +c.playerName+ " twice in a row.");
}
}
}
So do you want it to give them points or do you not want it to give them points?
i'm a jerk, i want the winner to recieve pkp. but every time the winner kills the person he gets a message saying "You do not recieve pk points because you have killed " +c.playerName+ " twice in a row" even though he killed once. please help
nando, i did what you said, still same thing happend .
please help i'll rep.
add my msn: [email protected] i will rep and/or pay via onebip
Easy enoughCode:public void applyDead() { c.respawnTimer = 15; c.isDead = false; Client o = (Client) Server.playerHandler.players[c.killerId]; if(c.duelStatus != 6) { c.killerId = findKiller(); if(o != null) { c.playerKilled = c.playerId; if(o.duelStatus == 5) { o.duelStatus++; } if (Server.playerHandler.players[c.playerId].connectedFrom != o.lastKilled ) { o.pkPoints = (o.pkPoints + 4); o.sendMessage("You recieved 4 pkPoints"); o.lastKilled = Server.playerHandler.players[c.playerId].connectedFrom; } else { o.sendMessage("You do not recieve pk points because you have killed " +c.playerName+ " twice in a row."); } } }
Thanks repped
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |