Thread: Pointttssss

Results 1 to 2 of 2
  1. #1 Pointttssss 
    Registered Member
    Join Date
    Aug 2013
    Posts
    293
    Thanks given
    13
    Thanks received
    8
    Rep Power
    5
    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?
    Reply With Quote  
     

  2. #2  
    Seven Lions

    Yvne's Avatar
    Join Date
    Sep 2012
    Posts
    1,204
    Thanks given
    164
    Thanks received
    173
    Rep Power
    81
    Quote Originally Posted by We want fifa View Post
    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.");
    				}
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •