Advertisement
cyber_Ahn

menu_remote

Jul 17th, 2015
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // this script give you the menu from a gate in the range
  2. //you can use it for seperately menu button in your base or so
  3. // range setting llSay = 20m for higher range set all llSay to llShout
  4. key user;
  5. integer on = 0;
  6. default
  7. {
  8.     state_entry()
  9.     {
  10.         llListen(-905000,"",NULL_KEY,"");
  11.         llListen(-805000,"",NULL_KEY,"");
  12.         llListen(-605000,"",NULL_KEY,"");
  13.         llListen(-505000,"",NULL_KEY,"");
  14.     }
  15.     touch_start(integer total_number)
  16.     {
  17.         on = 1;
  18.         llSay(-904000, "stargate name");
  19.         llSay(-804000, "stargate name");
  20.         llSay(-604000, "stargate name");
  21.         llSay(-504000, "stargate name");
  22.         user = llDetectedKey(0);
  23.     }
  24.     listen(integer chan, string n, key id, string msg)
  25.     {
  26.         if(on == 1)
  27.         {
  28.             llSay(-904000, "get_menu_chat|"+(string)user+"|"+(string)id+"|"+llKey2Name(user));          
  29.             llSay(-804000, "get_menu_chat|"+(string)user+"|"+(string)id+"|"+llKey2Name(user));
  30.             llSay(-604000, "get_menu_chat|"+(string)user+"|"+(string)id+"|"+llKey2Name(user));
  31.             llSay(-504000, "get_menu_chat|"+(string)user+"|"+(string)id+"|"+llKey2Name(user));
  32.             on = 0;
  33.         }
  34.     }
  35.     on_rez(integer param)
  36.     {
  37.         llResetScript();
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement