Originally Posted by
We want fifa
How can i make it when u kill someone in wildy u get pc points i.e 2 pc points per kill and donators get 3?
PlayerAssistant anywhere:
Code:
public void addPKP() {
Client o = (Client) PlayerHandler.players[c.killerId];
int regularPKP = 2;
int donatorPKP = 3;
if (o.isDonator) {
o.pkPoints += donatorPKP;
o.sendMessage("@red@You receive two Points, You now have "
+ o.pkPoints + " PK Points.");
} else {
o.pkPoints += regularPKP;
o.sendMessage("@red@You have received a Point, You now have "
+ o.pkPoints + " PK Points.");
}
}
Under applyDead replace your give pkpoints part with this:
Code:
if (!PlayerKilling.hostOnList(o, c.connectedFrom)) {
PlayerKilling.addHostToList(o, c.connectedFrom);
addPKP();
} else {
o.sendMessage("You have recently defeated " + c.playerName
+ ", You don't receive any PK Points.");
}