Thread: [PI] Pkpoint when you kill a player

Results 1 to 6 of 6
  1. #1 [PI] Pkpoint when you kill a player 
    Registered Member Riiip's Avatar
    Join Date
    Jun 2008
    Age
    34
    Posts
    81
    Thanks given
    11
    Thanks received
    6
    Rep Power
    0
    it isnt rewarding me a PKPoint when i kill the player? any ideas?

    Code:
    		if(c.duelStatus != 6) {
    			//c.killerId = c.getCombat().getKillerId(c.playerId);
    			c.killerId = findKiller();
    			Client o = (Client) Server.playerHandler.players[c.killerId];
    			if(o != null) {
    				if (c.killerId != c.playerId)
    			if(o.getKill().addPlayer(c.playerName)) {
    				c.pkPoints += 1;
    	o.sendMessage("You have defeated "+c.playerName+", you now have "+o.pkPoints+" PK Points.");
    			}
    				c.playerKilled = c.playerId;
    				if(o.duelStatus == 5) {
    					o.duelStatus++;
    Reply With Quote  
     

  2. #2  
    Registered Member Richie's Avatar
    Join Date
    Sep 2009
    Age
    28
    Posts
    791
    Thanks given
    81
    Thanks received
    18
    Rep Power
    6
    add c.pkPoints += 1; directly under:
    Code:
    if (c.killerId != c.playerId)
    Reply With Quote  
     

  3. #3  
    Registered Member Riiip's Avatar
    Join Date
    Jun 2008
    Age
    34
    Posts
    81
    Thanks given
    11
    Thanks received
    6
    Rep Power
    0
    Cheers fella...


    *Edit: Ugh... Didnt work :/
    Reply With Quote  
     

  4. #4  
    Registered Member Ghost`'s Avatar
    Join Date
    May 2010
    Posts
    416
    Thanks given
    10
    Thanks received
    13
    Rep Power
    2
    Code:
    o.pkPoints++;
    Since it's giving points to the killed person with that code
    Reply With Quote  
     

  5. #5  
    Registered Member Riiip's Avatar
    Join Date
    Jun 2008
    Age
    34
    Posts
    81
    Thanks given
    11
    Thanks received
    6
    Rep Power
    0
    Cheers ghost, nice one pal ! x
    Reply With Quote  
     

  6. #6  
    Registered Member Ghost`'s Avatar
    Join Date
    May 2010
    Posts
    416
    Thanks given
    10
    Thanks received
    13
    Rep Power
    2
    You're welcome
    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
  •