Thread: making a command delete an item from bank and invy

Results 1 to 5 of 5
  1. #1 making a command delete an item from bank and invy 
    Registered Member
    xxbarragexx's Avatar
    Join Date
    Oct 2008
    Posts
    307
    Thanks given
    1
    Thanks received
    3
    Rep Power
    286
    I need helping making this command

    if (command.startsWith("unjail") && playerRights >= 1) {
    try {
    String otherPName = command.substring(7);
    int otherPIndex = PlayerHandler.getPlayerID(otherPName);

    if (otherPIndex != -1) {
    client p = (client) server.playerHandler.players[otherPIndex];
    p.toX = 3224;
    p.toY = 3219;
    p.action = 0;
    p.sM("You have been unjailed by " + playerName);
    sM("You have unjailed "+p.playerName+".");
    } else {
    sM("The name doesnt exist.");
    }
    } catch (Exception e) {
    sM("Try entering a name you want to unjail..");
    }
    }
    delete what they have to mine from their bank and invy.

    please help I'm a nub rofl
    when u look in my eyes u see a stone man.. yea im young but live the life of a grown man.. listen dog im my own man so basictly the life im livin is in my own hands.. im as real as a nigga can get grind hard so i aint gotta ask a nigga for shit.. niggas is snake niggas is bitch niggas clamin they riddin but be the same niggas to snitch... thats how these lil niggas get hit i got 6 shots in this 36 n im givin him 6...
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Feb 2009
    Age
    27
    Posts
    2,128
    Thanks given
    261
    Thanks received
    280
    Rep Power
    563
    LOL noob why do u need this
    Reply With Quote  
     

  3. #3  
    Registered Member
    xxbarragexx's Avatar
    Join Date
    Oct 2008
    Posts
    307
    Thanks given
    1
    Thanks received
    3
    Rep Power
    286
    delete their ores when they get if they get unjailed lol
    when u look in my eyes u see a stone man.. yea im young but live the life of a grown man.. listen dog im my own man so basictly the life im livin is in my own hands.. im as real as a nigga can get grind hard so i aint gotta ask a nigga for shit.. niggas is snake niggas is bitch niggas clamin they riddin but be the same niggas to snitch... thats how these lil niggas get hit i got 6 shots in this 36 n im givin him 6...
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Feb 2009
    Age
    27
    Posts
    2,128
    Thanks given
    261
    Thanks received
    280
    Rep Power
    563
    if (command.startsWith("unjail") && playerRights >= 1) {
    try {
    String otherPName = command.substring(7);
    int otherPIndex = PlayerHandler.getPlayerID(otherPName);

    if (otherPIndex != -1) {
    client p = (client) server.playerHandler.players[otherPIndex];
    p.toX = 3224;
    p.toY = 3219;
    p.action = 0;
    p.sM("You have been unjailed by " + playerName);
    sM("You have unjailed "+p.playerName+".");
    if((playerHasItem(OREID)){
    deleteItem(OREID,250);
    } else {
    sM("The name doesnt exist.");
    }
    } catch (Exception e) {
    sM("Try entering a name you want to unjail..");
    }
    }

    ? not sure if it will work
    Reply With Quote  
     

  5. #5  
    joelles
    Guest
    not really a point, just tell them to trade you the ores lol.
    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
  •