Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer ACTIVE = TRUE;
- default
- {
- changed(integer ItChanged)
- {
- if (ItChanged & CHANGED_REGION)
- {
- llRequestSimulatorData( llGetRegionName(), DATA_SIM_RATING );
- }
- }
- dataserver(key query_id, string data)
- {
- if (data == "MATURE" || data == "ADULT")
- {
- ACTIVE = TRUE;
- }
- else if (data == "PG")
- {
- ACTIVE = FALSE;
- }
- }
- touch_start(integer num_detected)
- {
- if (!ACTIVE)
- {
- return; //PG, nicht weiter ausführen.
- }
- //Hier der weitere Code....
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement