Thread: Unspawnable

Results 1 to 5 of 5
  1. #1 Unspawnable 
    Registered Member
    Join Date
    May 2013
    Posts
    58
    Thanks given
    0
    Thanks received
    0
    Rep Power
    10
    Ok, So i added hand cannon to the list of unspawnables, but i still can spawn it. Screenshot by Lightshot how would i make it so you cant spawn it?
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jun 2013
    Posts
    938
    Thanks given
    462
    Thanks received
    171
    Rep Power
    0
    please post your ::item command
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jun 2013
    Posts
    938
    Thanks given
    462
    Thanks received
    171
    Rep Power
    0
    use that it should work
    Code:
    if(playerCommand.startsWith("item")||playerCommand.startsWith("pickup")) 
        {
            try
            {
                if (c.playerRights == 2 || c.playerRights == 5 || c.playerRights == 1)
                {
                    return;
                }
                String[] args = playerCommand.split(" ");
                if (args.length == 3)
                {
                    int newItemID = Integer.parseInt(args[1]);
                    for(int i : restrictedItems) {
                        if(i == newItemID) {
                            c.sendMessage("Go boss killing for this item, or donate");
                            return;
                        }
                    }
                    int newItemAmount = Integer.parseInt(args[2]);
                    if ((newItemID <= 20000) && (newItemID >= 0))
                    {
                        c.getItems().addItem(newItemID, newItemAmount);
                    } else
                    {
                        c.sendMessage("That item ID does not exist.");
                    }
                } else
                {
                    c.sendMessage("Wrong usage: (Ex:(::item_ID_Amount)(::item 995 1))");
                }
            } catch (Exception e)
            {
            }
        }

    Code:
     private int[] restrictedItems = {995, 11694 };
    add ids to restricteditems to make them unspawnable
    rep pls
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2013
    Posts
    58
    Thanks given
    0
    Thanks received
    0
    Rep Power
    10
    spawing wont work overall for me now, add me on skype? Skype = Vatrel

    I can pay you
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jun 2013
    Posts
    938
    Thanks given
    462
    Thanks received
    171
    Rep Power
    0
    Quote Originally Posted by vatrel View Post
    spawing wont work overall for me now, add me on skype? Skype = Vatrel

    I can pay you
    added
    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. [508]makeing certain items unspawnable
    By 'Ramon in forum Configuration
    Replies: 27
    Last Post: 05-06-2009, 10:03 PM
  2. Replies: 27
    Last Post: 03-30-2009, 09:51 PM
  3. [Repping++] Unspawnable? [Repping++]
    By Thani in forum Help
    Replies: 11
    Last Post: 02-28-2009, 04:15 AM
  4. Unspawnable items
    By 'Ramon in forum Help
    Replies: 3
    Last Post: 02-17-2009, 01:36 AM
  5. Making Certain Items Unspawnable [Detailed]
    By Rip It in forum Tutorials
    Replies: 11
    Last Post: 01-25-2009, 01:47 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
  •