Advertisement
Tyluur

Untitled

Dec 25th, 2011
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. if (!c.inFunPk()) {
  2. c.killerId = findKiller();
  3. Client o = (Client) PlayerHandler.players[c.killerId];
  4. if (o != null && c.killerId != c.playerId) {
  5. if (c.connectedFrom.equals(o.connectedFrom)) {
  6. o.sendMessage("You are killing someone from the same IP address as you.");
  7. return;
  8. }
  9. if (c.inPits) {
  10. return;
  11. } else
  12. if(!PlayerKilling.hostOnList(o, c.connectedFrom)) {
  13. PlayerKilling.addHostToList(o, c.connectedFrom);
  14. o.pPoints+=2;
  15. c.DC++;
  16. o.KC++;
  17. o.sendMessage("You have received a point, you now have "+o.pPoints+" pk points.");
  18. } else {
  19. o.sendMessage("You have recently defeated "+c.playerName+", you don't receive any pk points.");
  20. }
  21.  
  22. }
  23. }
  24.  
  25. public boolean inFunPk() {
  26. return absX > 3275 && absX < 3319 && absY > 3045 && absY < 3120;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement