Jump to content

Sims Message Board


Guest
 Share

You are about to reply to a thread that has been inactive for 4777 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

With this script your able to send out a message to everyone in the sims. Simply type out a message "/1 You need stop Shooting" and a dialog will be sent out to everyone in the sims. They can choice to simply ingore it or okya it doesn't matter.

 

 

What you need to know:
Type in Channel /1
/1 mMessage   ("Must type mThen your Message" Example /1 mTest Test, Hello Everyone.")
/1 s     (" You only need say "s" To get message out to everyone" Example /1 s " You must add a message to be sent out!)
default
{
   on_rez(integer message) 
   {
     llResetScript();   
    }
     state_entry()
    {
        llListen(1,"",llGetOwner(),"");
    }

    listen(integer channel,string name,key id,string message)
    {
        if(llGetSubString(message,0,0) == "m")
        {
            string message = llGetSubString(message,1,-1);
            llSetObjectDesc(message);
            llOwnerSay("message changed to " +message);
        }
        if(llGetSubString(message,0,0) == "s")
        {
            llSensor("", NULL_KEY, AGENT, 96, PI);
        }
        
    }

    sensor(integer count) 
    {
        integer i;
       
        for(i = 0; i < count; ++i)
        {
            string message = (string)llGetObjectDesc();
            llDialog(llDetectedKey(i), message, ["Ok"], 12345);  
        }
    }
}

 

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4777 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...