Thread: Urgent@ duelarena not giving pkp [ pi ]

Results 1 to 6 of 6
  1. #1 Urgent@ duelarena not giving pkp [ pi ] 
    Banned Right man's Avatar
    Join Date
    Jun 2011
    Posts
    476
    Thanks given
    26
    Thanks received
    5
    Rep Power
    0
    HEY GUYS i been trying to fix this for some time but it wont work.

    here is the code:

    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.");
    }
    }
    }
    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!
    Reply With Quote  
     

  2. #2  
    I'm President Carter


    Join Date
    Jan 2011
    Posts
    1,204
    Thanks given
    17
    Thanks received
    222
    Rep Power
    144
    So do you want it to give them points or do you not want it to give them points?


    Reply With Quote  
     

  3. #3  
    Registered Member
    Nando's Avatar
    Join Date
    Feb 2009
    Age
    29
    Posts
    3,517
    Thanks given
    2,439
    Thanks received
    1,108
    Rep Power
    5000
    edit: nvm I'm wrong


    Reply With Quote  
     

  4. #4  
    Banned Right man's Avatar
    Join Date
    Jun 2011
    Posts
    476
    Thanks given
    26
    Thanks received
    5
    Rep Power
    0
    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
    Reply With Quote  
     

  5. #5  
    arrowzftw
    Guest
    Code:
    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.");
    }
    }
    }
    Easy enough
    Reply With Quote  
     

  6. #6  
    Banned Right man's Avatar
    Join Date
    Jun 2011
    Posts
    476
    Thanks given
    26
    Thanks received
    5
    Rep Power
    0
    Thanks repped
    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

Similar Threads

  1. pi duelarena
    By g0d 0f war in forum Help
    Replies: 3
    Last Post: 04-17-2011, 04:03 AM
  2. duelarena pi
    By g0d 0f war in forum Help
    Replies: 2
    Last Post: 03-29-2011, 06:23 PM
  3. pk farm -duelarena bug.
    By superbombet in forum Help
    Replies: 2
    Last Post: 10-17-2010, 03:10 AM
  4. Dodian - Duelarena
    By cookie in forum Advertise
    Replies: 6
    Last Post: 01-02-2010, 05:49 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •