Thread: [PI] Making Admins Not Able To Drop

Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1 [PI] Making Admins Not Able To Drop 
    Get On My Level

    ItsGoml's Avatar
    Join Date
    Dec 2010
    Posts
    643
    Thanks given
    11
    Thanks received
    79
    Rep Power
    391
    Ok so i went into my config.java file and made "ADMIN_DROP_ITEMS" to false but admins are still able to drop items. I dont know whats going on. Anyone wanna help meh?
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Oct 2010
    Posts
    716
    Thanks given
    82
    Thanks received
    131
    Rep Power
    0
    Code:
    if (c.playerRights = 2) {
    c.sendMessage("you can't drop as an admin");
    return;
    }
    Reply With Quote  
     

  3. #3  
    Get On My Level

    ItsGoml's Avatar
    Join Date
    Dec 2010
    Posts
    643
    Thanks given
    11
    Thanks received
    79
    Rep Power
    391
    Quote Originally Posted by Arno View Post
    Code:
    if (c.playerRights = 2) {
    c.sendMessage("you can't drop as an admin");
    return;
    }
    do you even know what that would do?
    1. it wouldn't block admins from dropping
    2. that would just say if ur an admin lets print out in their chat box "you cant drop as an admin"

    So please if anyone else wants to help me dont post bs like that.
    Reply With Quote  
     

  4. #4  
    I'm President Carter


    Join Date
    Jan 2011
    Posts
    1,204
    Thanks given
    17
    Thanks received
    222
    Rep Power
    144
    Message me on msn, I'll help you out.


    Reply With Quote  
     

  5. #5  
    Get On My Level

    ItsGoml's Avatar
    Join Date
    Dec 2010
    Posts
    643
    Thanks given
    11
    Thanks received
    79
    Rep Power
    391
    Quote Originally Posted by I'm A Jerk View Post
    Message me on msn, I'll help you out.
    haha aiight bro!
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Aug 2008
    Posts
    1,885
    Thanks given
    56
    Thanks received
    102
    Rep Power
    0
    Quote Originally Posted by death_td View Post
    do you even know what that would do?
    1. it wouldn't block admins from dropping
    2. that would just say if ur an admin lets print out in their chat box "you cant drop as an admin"

    So please if anyone else wants to help me dont post bs like that.
    If you weren't an idiot, that code would work if you put it in the right place
    Reply With Quote  
     

  7. #7  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    Code:
    if (c.playerRights == 2 && (!Config.ADMIN_DROP_ITEMS)) {
    c.sendMessage("You cannot drop as an Administrator.");
    return;
    }
    Reply With Quote  
     

  8. #8  
    Fuck yeah!
    Mergim's Avatar
    Join Date
    May 2009
    Age
    31
    Posts
    2,309
    Thanks given
    218
    Thanks received
    187
    Rep Power
    1619
    Quote Originally Posted by death_td View Post
    do you even know what that would do?
    1. it wouldn't block admins from dropping
    2. that would just say if ur an admin lets print out in their chat box "you cant drop as an admin"

    So please if anyone else wants to help me dont post bs like that.
    ahahhahahahahahahahahhahahahahahahhahahahahahahah you're so fucking stupid lol.
    Reply With Quote  
     

  9. #9  
    Roop
    Guest
    \server\src\server\model\players\packets

    dropitem.java

    Server.itemHandler.createGroundItem(c, itemId, c.getX(), c.getY(), c.playerItemsN[slot], c.getId());
    to

    if (c.playerRights != 2) {
    Server.itemHandler.createGroundItem(c, itemId, c.getX(), c.getY(), c.playerItemsN[slot], c.getId());
    }
    only right way to do it.
    Reply With Quote  
     

  10. #10  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    No it really isn't.
    Reply With Quote  
     

Page 1 of 3 123 LastLast

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. admins don't drop items
    By KingPkz in forum Help
    Replies: 2
    Last Post: 03-21-2011, 05:03 AM
  2. admins carnt drop
    By Buckshot in forum Help
    Replies: 2
    Last Post: 10-04-2009, 01:02 AM
  3. Replies: 13
    Last Post: 11-06-2008, 01:36 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •