Advertisement
salahzar

Lista avatar

Mar 17th, 2013
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. list avatar = [];
  2.  
  3.  
  4. default
  5. {
  6.     state_entry()
  7.     {
  8.         llSay(0, "Script running");
  9.         llListen(10,"",NULL_KEY,"");
  10.         llSetText("Elenco avatar che mi toccano\n/10 LIST\n/10 RESET",<1,0,0>,1);
  11.     }
  12.     listen(integer channel,string name,key id,string str)
  13.     {
  14.         if(str=="RESET") llResetScript();
  15.         if(str=="LIST") {
  16.             llSay(0,"Avatar che hanno toccato: ");
  17.             integer i;
  18.             for(i=0;i<llGetListLength(avatar);i++)
  19.             {
  20.                 llSay(0,llList2String(avatar,i)+"'");
  21.             }
  22.             llSay(0,"=======================");
  23.            
  24.         }
  25.     }
  26.    
  27.     touch_start(integer count)
  28.     {
  29.         string avatarname=llDetectedName(0);
  30.         avatar+=[avatarname];
  31.         llSay(0,"Registrato "+avatarname);
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement