GUIAnnouncements

Moved

Total Downloads: 11,756 - First Release: Jul 13, 2015 - Last Update: Oct 20, 2017

5/5, 66 likes
  1. I have it coded in my dev build at the moment. I will release an update soon I hope.
     
  2. Wrong plugin. This is GUI messages not chat messages. If you want to have it in the GUI then just change line 22 from

    "NewPlayerAnnouncementsShowTimes": 3,

    to something much higher like

    "NewPlayerAnnouncementsShowTimes": 1000,

    Then edit the list below line 17 to your liking.

    Now for the next 1000 connects they will see these messages.
     
  3. Thanks mate :D I will try on and let you know if it works!
     
  4. Sorry but new player announcements are intended for giving information to new players and are private.
    I will release an update as soon as possible. I just need some time to bug test it first as there are a few additions.

    I will upload the latest version to my Trello, be warned though that it is probably unfinished and things might be broken.
     
  5. thanks, the plugin you recommended earlier worked perfect, it was what I was looking for!
     
  6. its not part of the discussion here but i cant call the external hook correctly?! it should work but your plugins does nothing. something i missed?

    Code:
            #region General Setup/Cleanup           [PluginReference] Plugin Economics;
            [PluginReference] Plugin Reconomy;
        [PluginReference] Plugin GUIAnnouncements;        readonly Dictionary<ulong, Timer> payTimer = new Dictionary<ulong, Timer>();
               void Loaded()
            {
                LoadDefaultConfig();
                storedData = Interface.Oxide.DataFileSystem.ReadObject<StoredData>(Name);            if (!Economics && !Reconomy) PrintWarning("No economy plugins found, plugin disabled");            foreach (var player in BasePlayer.activePlayerList)
                    payTimer[player.userID] = timer.Repeat(PayoutInterval, 0, () => Payout(player, BasePayout, ReceivedForPlaying));        }        void Unload()
            {
                foreach (var player in BasePlayer.activePlayerList) payTimer[player.userID].Destroy();
            }        #endregion        void Payout(BasePlayer player, double amount, string message)
            {
                if (!Economics && !Reconomy) return;            Economics?.Call("Deposit", player.userID, amount);
                Reconomy?.Call("Deposit", player.userID, amount);            //PrintToChat(player, message.Replace("{amount}", amount.ToString()));
            GUIAnnouncements?.Call("CreateMsgGUI", "blaa", "0.1 0.1 0.1 0.7", "1 1 1", player);
            }        #region Welcome Bonus/Repeat
    ...
    ...
    ...
    would be nice if someone can help
     
  7. That appears to be correct so I am not sure why it does nothing.
    Probably better if you create a thread in the development section of Rust with your code and this
    Code:
    public void CreateMsgGUI(string Msg, string bannerTintColor, string textColor, BasePlayer player = null, bool isWelcomeAnnouncement = false, bool isRestartAnnouncement = false)
    as the method you are trying to call, then tag me in it with @JoeSheep in case I did something wrong and other people can help. Check for any debug errors as well, might help.
     
  8. finally i got it to work by myself. for some reason the declaration of external plugins (yours) must look like this

    [PluginReference("GUIAnnouncements")] GUIAnnouncements GuiA;

    and i can call it with

    Code:
    GuiA.CreateMsgGUI("blaa", "0.1 0.1 0.1 0.7", "1 1 1", player);
     
  9. The GUI Announcements has an error, the method should be private not public. Otherwise it cannot be called with CallHook
     
  10. Update for latest Rust/Oxide version coming very soon.
     
  11. JoeSheep updated GUI Announcements with a new update entry:

    1.17.49

     
  12. Wulf

    Wulf Community Admin

    Are you getting any errors? Details please.
     
  13. Error while compiling GUIAnnouncements.cs(291,35): error CS0119: Expression denotes a `method group', where a `variable', `value' or `type' was expected
     
  14. What Diesel said

     
  15. Wulf

    Wulf Community Admin

    Got this handled @JoeSheep? If not I have a fix for it I can post.
     
  16. I am assuming it has to do with line 291
    Code:
    ConsoleSystem.Run.Server.Normal("reload GUIAnnouncements");
    
     
  17. Wulf

    Wulf Community Admin

    And a few other changes.
     
  18. Wulf

    Wulf Community Admin

    Wulf updated GUI Announcements with a new update entry:

    1.17.50

     
  19. ConsoleSystem.Run(ConsoleSystem.Option.Unrestricted, "reload GUIAnnouncements");

    FIX