GUIAnnouncements

Moved

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

5/5, 66 likes
  1. I could make a command to turn off the announcements but there wouldn't be any way to differentiate between normal helicopters and those that have been spawned by an event.
     
  2. Would there be a way for the plugin dev of Chopper Survival be able to use a hook to disable gui notifications whilst the event is running?
     
  3. If I put in a hook then yeah, I think the control should really be within my plugin so Chopper Survival would need some way of giving information that an event is running. That way my plugin decides whether or not to announce rather than the potential to have more than one plugin controlling the same variable.
     
  4. aye agreed, @k1lly0u would you be willing to work with JoeSheep to make this happen? Would really, really help differentiate between event choppers and the (on my server) hourly default chopper that tours the map.
     
  5. I'm attempting to use the restarts function of this plugin. I'd like the server to restart at 8AM 4PM and 12AM so i set up the public restart announcements to what i could tell would be the correct times, then i reloaded the plugin and got this error:
    (17:59:32) | Failed to call hook 'OnServerInitialized' on plugin 'GUIAnnouncements v1.23.81' (FormatException: String was not recognized as a valid DateTime.)

    this is the config i set up to attempt this restarting and got the error with this.
    Code:
     "Public Restart Announcements": {
        "Announce With Time Left (HH:MM:SS)": [
          "08:00:00",
          "07:00:00",
          "06:00:00",
          "05:00:00",
          "04:00:00",
          "03:00:00",
          "02:00:00",
          "01:00:00",
          "00:45:00",
          "00:30:00",
          "00:15:00",
          "00:05:00"
        ],
        "Banner Color": "Grey",
        "Cancelled Scheduled Restart Text": "The restart in {time} has been cancelled.",
        "Enabled": true,
        "Restart Announcement Text": "Restarting in {time}",
        "Restart At (HH:MM:SS)": [
          "08:00:00",
          "16:00:00",
          "24:00:00"
        ],
        "Restart My Server": true,
        "Suspended Restart Text": "The restart in {time} has been suspended.",
        "Text Color": "White"
      },
     
  6. Change your 24:00:00 to 00:00:00 as the 24th hour essentially doesn't exist. Goes 23:59:59 then back to 00:00:00 :) To avoid confusion with this I might actually code in a conversion.
     
    Last edited by a moderator: Aug 5, 2017
  7. I figured out how to make this run with the in-game timer! You can use TimedExecute's in-game timer and just put announce.announce yourmessagehere in the desired timeslot and it works. :) Temporary fix until this one allows it's own in-game timer!
     
  8. This does do announcements by the in game time though
     
  9. NVM ! Found it ;)
     
    Last edited by a moderator: Aug 10, 2017
  10. ... good plugin, but position is not always good ! I want it not on top, i want banner / text bottom (see pic), how i make it ?

    If this is not possible, is there gibs alternative plugin with Automatic Timed Announcements ?
     

    Attached Files:

  11. This setting in the config:
    Code:
    "General Settings":{
       "Adjust Vertical Position":0.0,
    
    Will move the banner up and down. Negative number moves it down and a positive number moves it up.
     
  12. OK, its working, Thank U :)
     
    Last edited by a moderator: Aug 16, 2017
  13. @JoeSheep

    any chance we can get this updated for the new Bradley APC to announce last shot like the Heli ? :)

    Thanks
     
  14. +1 please, please, please :D
     
  15. Sure, I'll add it to my Trello list.
     
  16. Thanks
     
  17. Just to let everyone know. I no longer run my own server so I am out of the loop when it comes to updates to the game. Which means if an update breaks part of this plugin, I won't know unless some one mentions it. So please, if you notice anything wrong do not hesitate to post it here with as much information as possible. Thanks!
     
  18. Hi joe i got this :/ thx for your work

    (15:04:35) | Loaded plugin GUIAnnouncements v1.23.81 by JoeSheep

    (15:04:35) | Failed to call hook 'OnServerInitialized' on plugin 'GUIAnnouncements v1.23.81' (InvalidCastException: Cannot cast from source type to destination type.)

    (15:04:35) | at Oxide.Plugins.GUIAnnouncements.AutomaticTimedAnnouncementsStart () [0x00000] in <filename unknown>:0

    at Oxide.Plugins.GUIAnnouncements.OnServerInitialized () [0x00000] in <filename unknown>:0

    at Oxide.Plugins.GUIAnnouncements.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  19. Can you post your config in the
    Code:
    
                            
    tags please?
     
  20. Sure :D
    Code:
    {
      "A List Of Available Colors To Use (DO NOT CHANGE)": {
      "Banner Colors": "Grey, Red, Orange, Yellow, Green, Cyan, Blue, Purple",
      "Text Colors": "White, Red, Orange, Yellow, Green, Cyan, Blue, Purple"
      },
      "General Settings": {
      "Adjust Vertical Position": 0.0,
      "Announcement Duration": 10.0,
      "Fade In Time": 0.5,
      "Fade Out Time": 0.5,
      "Font Size": 18
      },
      "Private New Player Announcements": {
      "Announcements List (Show On This Many Joins : List To Show)": {
      "1": [
      "1st Join {rank} {playername} New player announcement 1.",
      "1st Join {rank} {playername} New player announcement 2.",
      "1st Join {rank} {playername} New player announcement 3."
      ],
      "2": [
      "2nd Join {rank} {playername} New player announcement 1.",
      "2nd Join {rank} {playername} New player announcement 2.",
      "2nd Join {rank} {playername} New player announcement 3."
      ],
      "3": [
      "3rd Join {rank} {playername} New player announcement 1.",
      "3rd Join {rank} {playername} New player announcement 2.",
      "3rd Join {rank} {playername} New player announcement 3."
      ]
      },
      "Banner Color": "Grey",
      "Enabled": false,
      "Text Color": "White"
      },
      "Private Respawn Announcements": {
      "Announcements List": [
      "{playername} Respawn announcement 1.",
      "{playername} Respawn announcement 2.",
      "{playername} Respawn announcement 3."
      ],
      "Banner Color": "Grey",
      "Enabled": false,
      "Text Color": "White"
      },
      "Private Test Announcement": {
      "Adjust Vertical Position": 0.0,
      "Banner Color": "Grey",
      "Duration": 10.0,
      "Fade In Time": 0.5,
      "Fade Out Time": 0.5,
      "Font Size": 18,
      "Text Color": "White"
      },
      "Private Welcome Announcements": {
      "Banner Color": "Grey",
      "Duration": 20.0,
      "Enabled": true,
      "Show Welcome Back If Player Has Been Here Before": true,
      "Text Color": "White",
      "Welcome Back Text": "Welcome back {playername}",
      "Welcome Text": "Welcome {playername}"
      },
      "Public Airdrop Announcements": {
      "Banner Color": "Green",
      "Enabled": true,
      "Show Location": false,
      "Text": "Airdrop en route!",
      "Text Color": "Yellow",
      "Text With Coords": "Airdrop en route to x{x}, z{z}"
      },
      "Public Automatic Game Time Announcements": {
      "Announcement List (Show at this in game time : Announcements to show)": {
      "18:15": [
      "The in game time is 18:15 announcement 1.",
      "The in game time is 18:15 announcement 2.",
      "The in game time is 18:15 announcement 3."
      ],
      "00:00": [
      "The in game time is 00:00 announcement 1.",
      "The in game time is 00:00 announcement 2.",
      "The in game time is 00:00 announcement 3."
      ],
      "12:00": [
      "The in game time is 12:00 announcement 1.",
      "The in game time is 12:00 announcement 2.",
      "The in game time is 12:00 announcement 3."
      ]
      },
      "Banner Color": "Grey",
      "Enabled": false,
      "Text Color": "White"
      },
      "Public Automatic Timed Announcements": {
      "Announcement List": [
      "Free Serveur TeamSpeak: lescathares.ts3serv.com",
      "Appuyez sur K pour afficher la liste des kits",
      "Push K for kits list",
      " Type: /helivote open 1 -> Call heli on you by a vote",
      " Last Wipe 23/03/2017"
      ],
      "Banner Color": "Cyan",
      "Enabled": true,
      "Show Every (HH:MM:SS)": "00:04:00",
      "Text Color": "Purple"
      },
      "Public Christmas Stocking Refill Announcement": {
      "Banner Color": "Green",
      "Enabled": false,
      "Text": "Santa has refilled your stockings. Go check what you've got!",
      "Text Color": "Red"
      },
      "Public Helicopter Announcements": {
      "Despawn": true,
      "Despawn Banner Color": "Red",
      "Despawn Text": "The patrol helicopter has left.",
      "Despawn Text Color": "White",
      "Destroyed": true,
      "Destroyed Banner Color": "Red",
      "Destroyed Text": "The patrol helicopter has been taken down!",
      "Destroyed Text Color": "White",
      "Destroyed Text With Destroyer": "{playername} got the last shot on the helicopter taking it down!",
      "Show Destroyer": true,
      "Spawn": true,
      "Spawn Banner Color": "Red",
      "Spawn Text": "Patrol Helicopter Inbound!",
      "Spawn Text Color": "Orange"
      },
      "Public Join/Leave Announcements": {
      "Announce Only Players With Permission": false,
      "Join Banner Color": "Grey",
      "Join Enabled": false,
      "Join Text": "{rank} {playername} has joined.",
      "Join Text Color": "White",
      "Leave Banner Color": "Grey",
      "Leave Enabled": true,
      "Leave Text": "{rank} {playername} has left.",
      "Leave Text Color": "White"
      },
      "Public Player Banned Announcement": {
      "Banner Color": "Grey",
      "Enabled": true,
      "Text": "{playername} has been banned. {reason}.",
      "Text Color": "Red"
      },
      "Public Restart Announcements": {
      "Announce With Time Left (HH:MM:SS)": [
      "12:00:00",
      "11:00:00",
      "10:00:00",
      "09:00:00",
      "08:00:00",
      "07:00:00",
      "06:00:00",
      "05:00:00",
      "04:00:00",
      "03:00:00",
      "02:00:00",
      "01:00:00",
      "00:45:00",
      "00:30:00",
      "00:15:00",
      "00:05:00"
      ],
      "Banner Color": "Grey",
      "Cancelled Scheduled Restart Text": "The restart in {time} has been cancelled.",
      "Enabled": false,
      "Restart Announcement Text": "Restarting in {time}",
      "Restart At (HH:MM:SS)": [
      "08:00:00",
      "20:00:00"
      ],
      "Restart My Server": false,
      "Suspended Restart Text": "The restart in {time} has been suspended.",
      "Text": "Restarting in {time}",
      "Text Color": "White"
      },
      "Third Party Plugin Support": {
      "Do Not Overlay LustyMap": true,
      "LustyMap Position (Left/Right)": "Left"
      }
    }