1. LaserHydra submitted a new resource:

    Notifications - Manage various server messages.

    Read more about this resource...
     
  2. Code:
    [Oxide] 8:33 AM [Error] Failed to run a 60.00 timer in 'Notifications v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 8:33 AM [Debug]   at Oxide.Plugins.Notifications.BroadcastAdvert () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Notifications.<InitializeFeatures>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0 
     
  3. I can see myself of hopping on this plugin, would it be possible to integrate custom command's on intervals? So I could say, call "server.save" with this plugin, as well as "server.say [message]"?
     
  4. Would you add it? :eek:

    Code:
    //Cfg("Settings");
    SetConfig("Enable Helicopter broadcast", true);
               
    //    Messages
    Cfg("Messages");
    SetConfig("Heli", "<color=red>ATTENTION</color> Patrol helicopter inbound!");
               
    //    Colors
    Cfg("Colors");
    SetConfig("Heli", "silver");
    Code:
    void OnEntitySpawned(BaseEntity entity)
        {
          if(!(bool)Config["Settings", "Enable Leave Message"]) return;
          string msg = Config["Messages", "Heli"].ToString();
         
            if(entity != null)
            {
              BaseHelicopter heli = entity.GetComponent<BaseHelicopter>();
           
                if (entity is BaseHelicopter)
                {
                  if((bool)Config["Settings", "Enable Helicopter broadcast"]) {
                    BroadcastChat($"<color={Config["Colors", "Heli"].ToString()}>{msg}</color>");
                          SendConsole(Config["Messages", "Heli"].ToString());
                  }
                } 
            }
        }
     
  5. This Plugin is called Notifications. So It basicly about Notifications / messages. Not about Server Commands. Use Timed Execute for that.
    [DOUBLEPOST=1442754352][/DOUBLEPOST]
    I'll propably add "Broadcast Airdrop" & "Broadcast Helicopter"
     
  6. Maybe you can workaround this here:
    Code:
    void OnEntityDeath(BaseEntity entity)
            {
          string msg = Config["Messages", "HeliDeath"].ToString();
       
                if (entity == null) return;
         
          BaseHelicopter heli = entity.GetComponent<BaseHelicopter>();
           
                if (entity is BaseHelicopter)
                {
                  if((bool)Config["Settings", "Enable Helicopter broadcast"]) {
                    SendAirControl($"<color={Config["Colors", "Heli"].ToString()}>{msg}</color>");
                          SendConsole(Config["Messages", "HeliDeath"].ToString());
                  }      
                } 
            }
    Shows the message, buuuut after the helicopter crashed. OnEntityTakesDamage to get the current health of the Helicopter could be nice :/ No time for this today.
     
  7. LaserHydra updated Notifications with a new update entry:

    1.0.1

     
  8. Hi

    When I type /players it clears my chat and I get no info.
     
  9. How many people do you have online?
     
  10. I tried it last night when there were 72 players. The entire chat cleared, it did show up in Console but it was difficult to read.
    [DOUBLEPOST=1443027571][/DOUBLEPOST]
    Would a screenshot of both in game and console help at all?
     
  11. I guess its still that rust bug which happens if too much is in one message. I'll see what I can do
     
  12. Great, I haven't looked at the config but reducing the font size might do it. Is there also away to format the list of players rather than them appearing on one line separated by a comma. Similar to the other Notification plugin.
     
  13. I'll see how he done that.
    [DOUBLEPOST=1443094349][/DOUBLEPOST]
    I already made the console message better locally and added some stuff, but there are still some problems I am trying to fix.
     
  14. Do you have any plans for adding country information in join message for the future @LaserHydra?

    Thanks again for this brilliant plugin! :)
     
  15. It is planned.
     
  16. Thanks for the fast reply!
     
  17. LaserHydra updated Notifications with a new update entry:

    1.1.0

     
  18. /dc is working, but if I use any of /c /admins /players I get the errors below:

    [Error] Failed to call hook 'C' on plugin 'Notifications v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Error] Failed to call hook 'cAdmins' on plugin 'Notifications v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Error] Failed to call hook 'cPlayers' on plugin 'Notifications v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
     
  19. Don't just give me the error part. That does not help me. What I actually need is the [Debug] part right below the error.
     
  20. Code:
    [Oxide] 9:47 AM [Error] Failed to call hook 'cAdmins' on plugin 'Notifications v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 9:47 AM [Debug]  at Oxide.Plugins.Notifications.IsAdmin (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Notifications.cAdmins (.BasePlayer player) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Oct 11, 2015