I have it coded in my dev build at the moment. I will release an update soon I hope.
GUIAnnouncements
Moved
Total Downloads: 11,756 - First Release: Jul 13, 2015 - Last Update: Oct 20, 2017
- 5/5, 66 likes
-
"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. -
Thanks mate
I will try on and let you know if it works!
-
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. -
thanks, the plugin you recommended earlier worked perfect, it was what I was looking for!
-
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 ... ... ...
-
Probably better if you create a thread in the development section of Rust with your code and thisCode:public void CreateMsgGUI(string Msg, string bannerTintColor, string textColor, BasePlayer player = null, bool isWelcomeAnnouncement = false, bool isRestartAnnouncement = false)
-
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);
-
The GUI Announcements has an error, the method should be private not public. Otherwise it cannot be called with CallHook
-
Update for latest Rust/Oxide version coming very soon.
-
JoeSheep updated GUI Announcements with a new update entry:
1.17.49
-
update
-
Wulf Community Admin
-
Error while compiling GUIAnnouncements.cs(291,35): error CS0119: Expression denotes a `method group', where a `variable', `value' or `type' was expected
-
-
Wulf Community Admin
Got this handled @JoeSheep? If not I have a fix for it I can post.
-
I am assuming it has to do with line 291
Code:ConsoleSystem.Run.Server.Normal("reload GUIAnnouncements");
-
Wulf Community Admin
-
Wulf Community Admin
Wulf updated GUI Announcements with a new update entry:
1.17.50
-
ConsoleSystem.Run(ConsoleSystem.Option.Unrestricted, "reload GUIAnnouncements");
FIX