Unofficial LSL Reference

[[functions:lladdtolandbanlist]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Function: llAddToLandBanList

llAddToLandBanList(key id, float hours)

Add a person to the ban list of the parcel, either temporarily or permanently.

Sleeps the script for 0.1 seconds.

Parameters

id

The key of the avatar to ban.

hours

A float with the number of hours the ban will last, or zero to make the ban permanent.

Notes

  • Sleeps the script for 0.1 seconds.
  • When the addition is not permanent, the maximum time that can be specified is 144 hours (6 days). If more than 144 hours are specified, 144 will be used.
  • Only scripts in objects owned by the land owner can use this function.

Short examples

// Permanently ban Doug Linden, whose key is a2e76fcd-9360-4f6d-a924-000000000001
llAddToLandBanList("a2e76fcd-9360-4f6d-a924-000000000001", 0);

Complete examples

llAddToLandBanList-example.lsl
default
{
    state_entry()
    {
        llSetText("Don't touch me or you'll be banned for 30 minutes!", <1, 0, 0>, 1);
    }

    touch_start(integer num)
    {
        llAddToLandBanList(llDetectedKey(0), 0.5);
    }
}

See also