Advertisement
worstbull

PG

Nov 25th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer ACTIVE  = TRUE;
  2. default
  3. {
  4.     changed(integer ItChanged)
  5.     {
  6.         if (ItChanged & CHANGED_REGION)
  7.     {
  8.         llRequestSimulatorData( llGetRegionName(), DATA_SIM_RATING );
  9.     }
  10.     }
  11.  
  12.     dataserver(key query_id, string data)
  13.     {
  14.         if (data == "MATURE" || data == "ADULT")
  15.     {
  16.         ACTIVE = TRUE;
  17.     }
  18.         else if (data == "PG")
  19.     {
  20.         ACTIVE = FALSE;
  21.     }
  22.     }
  23.  
  24.     touch_start(integer num_detected)
  25.     {
  26.         if (!ACTIVE)
  27.         {
  28.             return; //PG, nicht weiter ausführen.
  29.         }
  30.  
  31.         //Hier der weitere Code....
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement