Mevent
Adds custom notifications for players

Supported Games

Permissions

  • uinotify.see - permission to see the notification
  • uinotify.notify - permission to use "uinotify.show" command
  • uinotify.player - permission to use "uinotify.player" command
  • uinotify.allplayer - permission to use "uinotify.allplayers" command

Commands

  • uinotify.show [type] [message]
  • uinotify.player [steamid] [type] [message]
  • uinotify.allplayers [type] [message]

Configuration

{
  "Permission (example: notify.use)": "",
  "Height": 50.0,
  "Width": 260.0,
  "X Margin": 20.0,
  "Y Margin": 5.0,
  "Y Indent": -50.0,
  "Notify Cooldown": 10.0,
  "Notifications (type - settings)": {
    "0": {
      "Background Color": {
        "HEX": "#000000",
        "Opacity (0 - 100)": 98.0
      },
      "Enable Gradient?": true,
      "Gradient Color": {
        "HEX": "#4B68FF",
        "Opacity (0 - 100)": 35.0
      },
      "Sprite": "assets/content/ui/ui.background.transparent.linearltr.tga",
      "Material": "Assets/Icons/IconMaterial.mat",
      "Icon Color": {
        "HEX": "#4B68FF",
        "Opacity (0 - 100)": 100.0
      },
      "Icon Text": "!",
      "Icon Text Color": {
        "HEX": "#FFFFFF",
        "Opacity (0 - 100)": 100.0
      },
      "Title Key (lang)": "Notification",
      "Title Color": {
        "HEX": "#FFFFFF",
        "Opacity (0 - 100)": 50.0
      },
      "Text Color": {
        "HEX": "#FFFFFF",
        "Opacity (0 - 100)": 100.0
      },
      "Fade Out": 1.0,
      "Fade In": 0.1,
      "Sound Effect (empty - disable)": "assets/bundled/prefabs/fx/notice/item.select.fx.prefab",
      "Image Settings": {
        "Enabled": false,
        "Image": "",
        "AnchorMin": "0 0",
        "AnchorMax": "0 0",
        "OffsetMin": "12.5 12.5",
        "OffsetMax": "37.5 37.5"
      }
    },
    "1": {
      "Background Color": {
        "HEX": "#000000",
        "Opacity (0 - 100)": 98.0
      },
      "Enable Gradient?": true,
      "Gradient Color": {
        "HEX": "#FF6060",
        "Opacity (0 - 100)": 35.0
      },
      "Sprite": "assets/content/ui/ui.background.transparent.linearltr.tga",
      "Material": "Assets/Icons/IconMaterial.mat",
      "Icon Color": {
        "HEX": "#FF6060",
        "Opacity (0 - 100)": 100.0
      },
      "Icon Text": "X",
      "Icon Text Color": {
        "HEX": "#FFFFFF",
        "Opacity (0 - 100)": 100.0
      },
      "Title Key (lang)": "Error",
      "Title Color": {
        "HEX": "#FFFFFF",
        "Opacity (0 - 100)": 50.0
      },
      "Text Color": {
        "HEX": "#FFFFFF",
        "Opacity (0 - 100)": 100.0
      },
      "Fade Out": 1.0,
      "Fade In": 0.1,
      "Sound Effect (empty - disable)": "assets/bundled/prefabs/fx/notice/item.select.fx.prefab",
      "Image Settings": {
        "Enabled": false,
        "Image": "",
        "AnchorMin": "0 0",
        "AnchorMax": "0 0",
        "OffsetMin": "12.5 12.5",
        "OffsetMax": "37.5 37.5"
      }
    }
  }
}

Localization

{
  "Notification": "Notification",
  "Error": "Error"
}

Developers

Hooks

private void SendNotify(string userId, int type, string message)
private void SendNotify(ulong userId, int type, string message)
private void SendNotify(BasePlayer player, int type, string message)

Credits

  • Mevent - original plugin developer
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.