Thread: Stopping staff trading and loosing items on death ( Building an ecomony )

Results 1 to 8 of 8
  1. #1 Stopping staff trading and loosing items on death ( Building an ecomony ) 
    Banned

    Join Date
    Sep 2009
    Posts
    3,247
    Thanks given
    195
    Thanks received
    255
    Rep Power
    0
    Before i start i TAKE NO CREDIT at all like a measly 1% for posting this to help some of you out I spent days looking for a guide, finally decided to post requests and some people replied

    so 100% credit to the following

    - Digistr ( Stopping staff loosing items on death)
    - Loco ( Stoping Mods and admins trading)


    So I was starting to get annoied with mods spawning max cash and accidently dieying with it in the wild so i thought it'd be a good idea to stop them from looosing stuff on death aswell as stopping them from trading because they where spawning stuff and giving to mates to get them started..

    ::.. Stopping Mods / Admins loosing items on death (Credit to Digistr) ..::

    search youdied()

    in it add

    if(playerRight > 0){
    return;
    }

    && playerRights < 1

    ::.. Stopping Mods / adming trading (credit to loco) ..::

    Under "public void tradeReq(int id) {"

    add

    Code:
    if(playerRights == 2){
    sM("Staff Administrators can't trade players.");
    return;
    }
    if(playerRights == 1){
    sM("Staff Moderators can't trade players..");
    return;
    }
    if(playerRights == 3){
    sM("Owner/Co Owner can't trade.");
    return;
    }
    ::.. Stopping Mods / Admins loosing Dropping items (Credit to Loco) ..::

    Look for
    Code:
    	public void dropItem(int droppedItem, int slot) {
    		// misc.printlnTag("droppeditem ["+playerItems[slot]+"] which is
    		// ["+(droppedItem+1)+"]");
    		boolean a = true;
    Under that add

    Code:
        if (playerRights == 2) {
          sM("Dropping has been disabled, use ::empty to delete your inventoy instead.");
          return ;
        }
    Once again i take no credit for this Just thought it'd be helpfull to post it seeming it took me days to find out how to do this =[]
    Reply With Quote  
     

  2. #2  
    Registered Member
    Coder Alex's Avatar
    Join Date
    Apr 2009
    Age
    27
    Posts
    1,755
    Thanks given
    86
    Thanks received
    83
    Rep Power
    231
    This is so easy to make, make an if statement with rights == 2 , and make it give a return;...
    (in needed packets)

    Might help starters, good job. I guess.
    My english skills back in the days.
    Quote Originally Posted by Coder Alex
    Well, if it's gooded decent, it's good.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Rainaka's Avatar
    Join Date
    Nov 2008
    Age
    26
    Posts
    1,391
    Thanks given
    273
    Thanks received
    89
    Rep Power
    870
    Simple IMO, allow "Pickup" only to you. And don't offer or give any free stuff to staff.. they are there to enforce rules, not have a "better experience" which will turn players away from the server.

    [Only registered and activated users can see links. ]



    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Sep 2009
    Posts
    3,247
    Thanks given
    195
    Thanks received
    255
    Rep Power
    0
    Ye alex i tried that but didn't work was something like

    ifplayerrights=<2
    return {

    Ik thats wrong format but ussing that you don't get the "staff cant trade" messages and stewfs =p
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Sep 2009
    Posts
    3,247
    Thanks given
    195
    Thanks received
    255
    Rep Power
    0
    oo I found a better method for when you die the other one was kinda crap.
    Reply With Quote  
     

  6. #6  
    Registered Member
    DaraX's Avatar
    Join Date
    Apr 2009
    Posts
    1,183
    Thanks given
    18
    Thanks received
    29
    Rep Power
    262
    Rofl, Made this almost as soon as i made my Delta, My best server is a little harder, but still, its easy.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    May 2009
    Posts
    845
    Thanks given
    44
    Thanks received
    39
    Rep Power
    29
    Hi, well I searched that in my files and everything looked for players right < 3 > 3, everything, could not find anything to do with my staff. But for some reason, my owner, nor i can trade, or pk. My admins can't trade the owner either, and i want owner to be able to spawn and pk... but my admins lose item and not spawn, but... pl0x help?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Feb 2008
    Posts
    2,085
    Thanks given
    1,908
    Thanks received
    1,053
    Rep Power
    5000
    I already made a better one.

    [Only registered and activated users can see links. ]


    It's so easy to convert.
    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

Tags for this Thread

View Tag Cloud

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