You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.
This shows you the differences between two versions of the page.
functions:lladdtolandbanlist [2014-01-03 12:28 SLT] sei created |
functions:lladdtolandbanlist [2015-09-22 18:30 SLT] (current) sei add descriptions to see also |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | $delayfloat[0.1] | + | $nav |
===== Function: llAddToLandBanList ===== | ===== Function: llAddToLandBanList ===== | ||
Line 6: | Line 6: | ||
</code> | </code> | ||
Add a person to the ban list of the parcel, either temporarily or permanently. | Add a person to the ban list of the parcel, either temporarily or permanently. | ||
+ | |||
+ | $delay[0.1] | ||
===== Parameters ===== | ===== Parameters ===== | ||
=== id === | === id === | ||
- | The [[types/key]] of the avatar to ban. | + | The $lty[key] of the avatar to ban. |
=== hours === | === hours === | ||
- | A [[types/float]] with the number of hours the ban will last, or zero to make the ban permanent. | + | A $lty[float] with the number of hours the ban will last, or zero to make the ban permanent. |
===== Notes ===== | ===== Notes ===== | ||
* $delay[0.1] | * $delay[0.1] | ||
+ | * 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. | * Only scripts in objects owned by the land owner can use this function. | ||
Line 23: | Line 26: | ||
<code lsl2> | <code lsl2> | ||
- | llAddToLandBanList("a2e76fcd-9360-4f6d-a924-000000000001", 0); // Permanently ban Doug Linden, whose key is a2e76fcd-9360-4f6d-a924-000000000001 | + | // Permanently ban Doug Linden, whose key is a2e76fcd-9360-4f6d-a924-000000000001 |
+ | llAddToLandBanList("a2e76fcd-9360-4f6d-a924-000000000001", 0); | ||
</code> | </code> | ||
Line 36: | Line 40: | ||
} | } | ||
- | touch_start() | + | touch_start(integer num) |
{ | { | ||
llAddToLandBanList(llDetectedKey(0), 0.5); | llAddToLandBanList(llDetectedKey(0), 0.5); | ||
Line 45: | Line 49: | ||
===== See also ===== | ===== See also ===== | ||
- | * [[llRemoveFromLandBanList]] | + | * $lfn[llRemoveFromLandBanList] to remove someone from the ban list. |
- | * [[llResetLandBanList]] | + | * $lfn[llResetLandBanList] to clear the ban list. |
- | * [[llAddToLandPassList]] | + | * $lfn[llAddToLandPassList] to add someone to the white list (allowed access list). |
- | * [[llRemoveFromLandPassList]] | + | * $lfn[llRemoveFromLandPassList] to remove someone from the white list. |
- | * [[llResetLandPassList]] | + | * $lfn[llResetLandPassList] to clear the white list. |