Table of Contents

Start Functions Events Constants Types Language Articles

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

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