Give to Group Only script

Thread Started By IAmFireProof

2399
0
  • 91 Vote(s) - 3.43 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rate Thread
#1
Set the object to the group you want to share with, put in this script
 
Code:
default
{
   state_entry()
   {
       llSay(0, "");
   }

   touch_start(integer total_number)
   {
           string object = llGetInventoryName(INVENTORY_OBJECT, 0);
      
           if(object)
               {
               if(llSameGroup(llDetectedKey(0)))
                   {
                   llGiveInventory(llDetectedKey(0), object);
                   }
               else
                   {
                   llSay(0, "Sorry, " + llKey2Name(llDetectedKey(0)) + " you must be a member of and wear: Insert name here");  
                   }
               }
           else
               {
               llSay(0,"No object found.");
               }
   }
}
Reply




Possibly Related Threads…
Thread Author Replies Views Last Post
  Group Discount sale script Bonfire 1 3,830 11-28-2014, 01:34 PM
Last Post: InigoMontoya
  Unpacker+ Delivery Confirmation+join Group Script Bonfire 0 2,785 11-28-2014, 07:53 AM
Last Post: Bonfire
  Group Discount sale script steadymobbin 0 1,813 02-18-2013, 02:06 AM
Last Post: steadymobbin
  Give inventory contents upon password steadymobbin 0 1,746 02-18-2013, 01:44 AM
Last Post: steadymobbin

Forum Jump:

2 Guest(s)
Share this:

About Second Life Copybot

Second Life CopyBot Forum is a place where you can get items for Second Life and other vitual worlds for free. With our CopyBot viewers you can export and import any content from these virtual worlds and modify them in 3D software such as Blender, 3D studio Macx etc...