Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list avatar = [];
- default
- {
- state_entry()
- {
- llSay(0, "Script running");
- llListen(10,"",NULL_KEY,"");
- llSetText("Elenco avatar che mi toccano, \nsenza ripetizioni\n/10 LIST\n/10 RESET",<0,1,0>,1);
- }
- listen(integer channel,string name,key id,string str)
- {
- if(str=="RESET") llResetScript();
- if(str=="LIST") {
- llSay(0,"Avatar che hanno toccato: ");
- integer i;
- for(i=0;i<llGetListLength(avatar);i++)
- {
- llSay(0,llList2String(avatar,i)+"'");
- }
- llSay(0,"=======================");
- }
- }
- touch_start(integer count)
- {
- string avatarname=llDetectedName(0);
- integer found=llListFindList(avatar,[avatarname]);
- if(found<0)
- {
- avatar+=[avatarname];
- llSay(0,"Registrato "+avatarname);
- }
- else llSay(0,"GiĆ registrato "+avatarname);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement