Advertisement
Edie_Shoreland

Sleep It Off Buddy!

Jun 30th, 2018
522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Avatar key based script to send unwanted guests home and prevent
  2. //them from returning for an hour.
  3.  
  4. //Script should be in an object owned by the landowner to work.
  5.  
  6. //You'll need to find the UUID for the avatar you want to eject and
  7. //say the key on channel 911.  This script allows anyone sending a
  8. //UUID on channel 911 to send someone to sleep it off.
  9.  
  10. integer listen_handle;
  11.  
  12. default
  13. {
  14.     state_entry()
  15.     {
  16.         listen_handle = llListen(911, "", "", "");
  17.     }
  18.  
  19.     listen( integer channel, string name, key id, string message )
  20.     {    
  21.         message  = llStringTrim(llToLower(message), STRING_TRIM);
  22.         key pest = (key)message;
  23.         llTeleportAgentHome(pest);
  24.         llAddToLandBanList(pest,1.0);
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement