Page 1 of 1

WarnSystem 1.0

Posted: Wed Feb 25, 2026 12:17 am
by greenie
The WarnSystem warning system provides functionality for issuing warnings to players who violate game server rules. Additionally, when the maximum number of warnings set by server administrators is reached, the system automatically applies a ban to the player. This helps maintain order and cleanliness on the server, ensuring a safe and comfortable gaming environment for all participants.

How to access commands?
1. Open the "addons/counterstrikesharp/configs" directory.
2. Find the "admins.json" file in the specified folder.
3. Inside the "admins.json" file, add the necessary flags to access the commands (@admin/warn, @admin/unwarn).
For example:
"76561198847871713": {
"identity": "76561198847871713",
"flags": [
"@admin/warn",
"@admin/unwarn"
],
}
Image

Image

Config.yml
# Configuration file for WarnSystem
# Command to ban players
BanCommand: "mm_ban {0} {1} {2}"
# Maximum number of warnings before ban
MaxWarningsBeforeBan: "3"
# Ban duration in seconds
BanDuration: "600"
# Ban reason
BanReason: "Multiple warnings"
# Ban message
BanMessage: "[{Red}ADMIN{White}] Player {Red}{PlayerName}{White} has been banned for multiple warnings."
# Warning message
WarningMessage: "[{Red}ADMIN{White}] Player {Red}{PlayerName}{White} has received a warning. Current number of warnings: {Red}{Warnings}{White}. Time left before ban: {Red}{WarningsLeft} {White}warnings."
# Warning clearing message
WarningsClearedMessage: "<font color='green' class='fontSize-l'>Your warnings have been cleared.</font>"
# Message to the administrator about clearing warnings
AdminWarningsClearedMessage: "[{Red}ADMIN{White}] {Green}{PlayerName}{White}'s warnings have been cleared."
# Message to the administrator if the player has no warnings
NoWarningsMessage: "[{Red}ADMIN{White}] {Green}{PlayerName}{White} has no warnings."
# Centered warning message
WarningCenterMessage: "<font color='red' class='fontSize-l'>You have received a warning. You now have {Warnings} warnings. {WarningsLeft} warnings left before ban.</font>"
Requirements
Metamod:Source
CounterStrikeSharp
CS2 Admin System
Teams
!warn - issue a warning to the player.
!unwarn - clear the player's warnings.
Installation
1. Install Metamod:Source and Counter-StrikeSharp . For the CS2 ban to work, use the Admin System
. 2. Download WarnSystem.
3. Unzip the archive and upload it to the game server.

https://hlmod.net/resources/warnsystem.4282/download