Garry's Mod

[KCS] Advanced Warnsystem

[KCS] Advanced Warnsystem


Gameplay Review Video

📦 installation

1. Place the `kratoscity_warns` folder into your addons directory:

garrysmod/addons/kratoscity_warns/

2. Restart the server – done.

⚙ configuration
All settings in:

lua/kratoscity_warns/shared/sh_config.lua

Open AdminPanel / Admin Menu

!warnpanel

🔑 Permissions (CAMI)
| Permission | Description

|---|---|

| `kratoscity_warns_warn` | Warn a player

| `kratoscity_warns_unwarn` | Remove a specific warning

| `kratoscity_warns_panel` | Open the admin panel

| `kratoscity_warns_clear` | Clear all warnings for a player

| `kratoscity_warns_ban` | Ban a player via the panel

Without CAMI: `superadmin`, `admin`, and `moderator` have full access.

Most important Options

HUDDuration   = 60    -- How long the HUD is displayed to the player (seconds)

DiscordWebhook = ""    -- Enter Discord Webhook URL

UseMySQL    = false  -- true = MySQL, false = SQLite

AutoActions = {

[3] = { action = "kick", reason = "..." },

[5] = { action = "ban",  duration = 1440, ... },

}

QuickReasons = { "Beleidigung", "RDM", ... } -- Quick selection in the panel and you can add your own QuickReasons

💻 Console commands

**`kc_warn \ \` | Warn a player via console | **

***`kc_warns \` | Display a player's warnings | ***

***`kc_warnpanel` | Open admin panel | ***

`!warnpanel` (chat) | Open admin panel |

Features

Player-Side

- **Dramatic HUD** upon receiving a warning:

- Appears for **60 seconds** (configurable)

- Displays: "YOU HAVE BEEN WARNED", reason, admin name, total warning count

- Animated warning badge showing the total count

- Red screen tint + floating particles

- Countdown timer bar (color shifts from red → green)

- Smooth fade-in / fade-out

- Warning sound effect

| Admin Panel (`!warnpanel` in chat or `kc_warnpanel` in console)

| Tab | Function |

|---|---|

| **All Warnings** | Full warning list, search, context menu (remove / delete all) |

| **Players** | Warning lookup via SteamID |

| **Online Players** | Live list of all players with "Warn" & "Kick" buttons |

| **Quick Warn** | Dropdown + quick-reason chips + send button |

Admin Toasts

- Admins see a **real-time notification** in the top-right corner for every warning issued.

Automated Actions (configurable)

| Warnings | Default Action

|---|---|

| 3 | Automatic kick

| 5 | 24h ban

| 10 | Permanent ban

€18.04