CODE
integer range = 20; //Approzimate size of parcel. Its possible to get very exact by using other means, but I find a sensor with an approximate range is good enough.
list accepted = ["Me","My Friend1","My Friend2"]; //adjust list for people you want allowed in
default
{
state_entry()
{
llSensorRepeat("","",AGENT,range,PI,1);
}
sensor(integer num)
{
integer index;
for (index = 0;index<num;index++)
{
if (llListFindList(accepted,[llDetectedName(index)])== -1)
{
llUnSit(llDetectedKey(index));
llEjectFromLand(llDetectedKey(index));
}
}
}
}
Is there possibly a way to edit this so I can just input a name on a private channel and it unsits and ejects the person from the parcel?
Also need it to work on group owned land as well... not sure if its possible.
[edit]correction, ok, it does work on group owned land even if not deeded.... ouchie... My dumbass was too tired and forgot to put names in the list... harder than hell trying to raise my view distance, rez a prim in the room and stay in build mode moving my mouse around trying to catch the prim before it kicked me again... >.< but is there a way to add enemies instead of friends to the list and make it work that way? [/edit]
