1. Change global.say servername? is this possible?
     
  2. Wulf

    Wulf Community Admin

    You'd need a plugin to handle it if you are talking about sending the server name to the chat.
     
  3. yes but a plugin that makes all global.say to like say [Crunshy] Hello insted of [SERVER]: Hello

    I know that notifier can change it owns messages to like that but for like TimedExecute it sends SERVER i saw a comment in the threds there but idk how to make it work on all 3 and if it even work and if you could change it to what you want insted of SERVER
    Code:
    foreach(var cmd in Config["TimerRepeat"] as Dictionary<string, object>)
    {
                        repeater = timer.Repeat(Convert.ToSingle(cmd.Value), 0, () =>{                    if(cmd.Key.Substring(0,3) == "say")
                        PrintToChat($"{cmd.Key.Substring(3)}");
                        else
                        ConsoleSystem.Run.Server.Normal(cmd.Key);                    Puts($"ran the command || " + cmd.Key.ToString());
                        });
    }
    Tnx in forehand
     
  4. Wulf

    Wulf Community Admin

    Use Oxide's API:
    Code:
    rust.BroadcastChat("Server Name", "Message");
     
  5. Ehh hmm sorry but where should i place that then in that whole code not even good at plugins coding i can read some code but i dont understand most of it.
     
  6. Wulf

    Wulf Community Admin

    Put it wherever you want to send the message. You can replace the "message" at the end with a variable if you want.
     
  7. oh so if i do
    "RealTime-Timer": {
    "12:00:00": "rust.BroadcastChat("Crunshy", "Automated server restart in 6 Hours");",


    Then it should work?
     
  8. Wulf

    Wulf Community Admin

    No, it needs to go in the plugin, not the config. Place it where you would be running the 'say' command.
     
  9. Code:
        void RunOnce()
         {
           if(chaintimer != null)  
           {   
             chaintimer.Destroy();
           }   
           if(Convert.ToBoolean(Config["EnableTimerOnce"]) == true)
           {
             foreach(var cmdc in Config["TimerOnce"] as Dictionary<string, object>)
             {
               chaintimer = timer.Once(Convert.ToSingle(cmdc.Value), () =>{
               ConsoleSystem.Run.Server.Normal(cmdc.Key);
               Puts($"ran the command || " + cmdc.Key.ToString());
               });
             }
           }
         }
         
         void Unloaded()
    
    So where in here for an exaple?

    Really sorry if i annoy you
     
  10. Wulf

    Wulf Community Admin

    Are you just trying to make a plugin that sends timed messages, or actual commands?
     
  11. You can use this Easy Broadcast for Rust | Oxide
    I have also written my own one in .lua called Anonymous admin. Where you can do /say and edit the "title" and colors.
     
  12. but dosent that change to broadcast to the middle of the screen?
     
  13. No, I don't believe that one does. But mine doesn't. It's normal, except you can choose to have things such as Admin : "text" where you can modify it to however you'd like.
     
  14. No i am not trying to creat one i am trying to avoide the SERVER part from the config in this one TimedExecute for Rust | Oxide
    When you write "23:00:00": "global.say Automated server restart in 6 Hours.", it will broadcast with SERVER in it.
    and that is what i am tryinf to avoid
     
  15. Wulf

    Wulf Community Admin

    Why not request the feature from the original author?
     
  16. okay here i found what i was looking for i was afraid i was going to but it in the middle of the screen thats why i did not ttest this one mark this one as solved

    Here for rest of you Better Say Command for Rust | Oxide