Advertisement
cyber_Ahn

gate_death_server

Apr 10th, 2015
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. default
  2. {
  3.     on_rez(integer start_param)
  4.     {
  5.         llResetScript();
  6.     }
  7.     state_entry()
  8.     {
  9.         llListen(-905000, "", "", "");
  10.         llListen(-805000, "", "", "");
  11.         llListen(-604000, "", "", "");
  12.         llListen(-54321, "", "", "");
  13.         llOwnerSay(" Please add to Land Group");
  14.     }
  15.     listen(integer c, string n, key id, string message)
  16.     {
  17.         integer b = llSubStringIndex(message, "|walking through the back of the event horizon");
  18.         if (b != -1)
  19.         {
  20.             message = llDeleteSubString(message, 0 , llSubStringIndex(message, "|agent|") + 6);
  21.             message = llDeleteSubString(message, llSubStringIndex(message, "|"), - 1);
  22.             string name = llKey2Name(message);
  23.             llSay(0, name + " was killed, walking through the back of the event horizon");
  24.             llTeleportAgentHome(message);
  25.         }
  26.         integer c = llSubStringIndex(message, "wormhole fatality|agent|");
  27.         if (c != -1)
  28.         {
  29.             message = llDeleteSubString(message, 0 , llSubStringIndex(message, "|agent|") + 6);
  30.             message = llDeleteSubString(message, llSubStringIndex(message, "|"), - 1);
  31.             string name = llKey2Name(message);
  32.             llSay(0, name + " was killed, standing too close to the Kawoosh Zone");
  33.             llTeleportAgentHome(message);
  34.         }
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement