Jump to content
Marianne Little

Owner only/group only

Recommended Posts

I have a hot tub that has adult animations. I find no way to control access to owner only or group only.

The hot tub is mod and copy, but the scripts are not.

I assume that removing the adult animations will lead to script error, because the scripts can't find the animations.

Can I buy a script that control the access only, so others get the message they can't sit here/can't use this? Or will this destroy the animations?

I will not place it out in moderate land as an invitation for random people to "have a good xxx time here". I am looking for something so I don't need a security orb.

Share this post


Link to post
Share on other sites

hiya, the following script should work..:)

you can set the access level at the first iine of the script.

string Access = "group";

// Access Types;
// Public = Everyone can use
// Group = Group Only
// Owner = Owner Only

default
{
    state_entry()
    {
        llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION); 
    }
    changed (integer change)
    {
         if (change & CHANGED_LINK)
         {
            key agent = llAvatarOnSitTarget();
            if(agent != NULL_KEY)
            {
                if (Access == "Owner" && agent != llGetOwner())
                {
                    llWhisper (0, "Sorry, access restricted to owner only");
                    llUnSit(agent);
                }
                else if (Access == "group")
                {
                    if(llSameGroup(agent))
                    {
                        return;
                    }
                    else
                    {
                          llWhisper (0, "Sorry, access restricted to group members only");
                          llUnSit(agent);
                    }
                }
            }
        }
    }
}

Good luck,

Dargo

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...