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

This is an old revision of the document!


Function: llAddToLandBanList

llAddToLandBanList(key id, float hours)

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

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.
  • Only scripts in objects owned by the land owner can use this function.

Short examples

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

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()
    {
        llAddToLandBanList(llDetectedKey(0), 0.5);
    }
}

See also