Thread: [Pi]How can i make it so ppl can't gain pkp in a certain area?

Results 1 to 5 of 5
  1. #1 [Pi]How can i make it so ppl can't gain pkp in a certain area? 
    Registered Member
    Join Date
    May 2011
    Posts
    74
    Thanks given
    2
    Thanks received
    0
    Rep Power
    1
    I really need help on this. Ppl are abusing it. What would i input and where? This is for funpk

    if(inFunPk()) {

    Where would I apply this?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2011
    Posts
    83
    Thanks given
    0
    Thanks received
    9
    Rep Power
    5
    I assume your point system works in the applyDead method?

    So find where it says o.pkPoints++;
    and change it to

    if(!c.inFunPk) {
    o.pkPoints++;
    } else {
    return;
    }




    I'm probably wrong, new to this kinda stuff, but it's along those lines.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2011
    Posts
    74
    Thanks given
    2
    Thanks received
    0
    Rep Power
    1
    Firstly, it says it doesnt recognize the funpk variable, so i add. Then, after i add the funpk variable, it needs the absx and absy variables.

    src\server\model\players\PlayerAssistant.java:2586 : cannot find symbol
    symbol : variable absX
    location: class server.model.players.PlayerAssistant
    return absX >= 3309 && absX <= 9393 && absY >= 9361 && absY <= 9
    393;
    ^
    src\server\model\players\PlayerAssistant.java:2586 : cannot find symbol
    symbol : variable absX
    location: class server.model.players.PlayerAssistant
    return absX >= 3309 && absX <= 9393 && absY >= 9361 && absY <= 9
    393;
    ^
    src\server\model\players\PlayerAssistant.java:2586 : cannot find symbol
    symbol : variable absY
    location: class server.model.players.PlayerAssistant
    return absX >= 3309 && absX <= 9393 && absY >= 9361 && absY <= 9
    393;
    ^
    src\server\model\players\PlayerAssistant.java:2586 : cannot find symbol
    symbol : variable absY
    location: class server.model.players.PlayerAssistant
    return absX >= 3309 && absX <= 9393 && absY >= 9361 && absY <= 9
    393;
    ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    4 errors
    Press any key to continue . . .
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2011
    Posts
    74
    Thanks given
    2
    Thanks received
    0
    Rep Power
    1
    another thing i noticed, my funpk method is mentioned one time in playerassistant.java already, its just fine... it doesnt need the variable.. any ideas? bcuz now im back where i started..
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    May 2011
    Posts
    74
    Thanks given
    2
    Thanks received
    0
    Rep Power
    1
    please help!
    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. how to make a pvp area 562
    By lt gangster in forum Help
    Replies: 7
    Last Post: 08-02-2010, 11:49 AM
  2. Replies: 4
    Last Post: 07-22-2010, 02:51 AM
  3. How to make a area so you can pk?
    By Trock in forum Help
    Replies: 0
    Last Post: 09-27-2009, 05:59 AM
  4. [508]How to make an area...
    By SilentZPrO in forum Help
    Replies: 3
    Last Post: 03-14-2009, 05:48 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
  •