EN
The WarnSystem warning system provides functionality for issuing warnings to players who violate the rules of the game server. Additionally, when the maximum number of warnings set by the server administrators is reached, the system automatically applies a blocking measure (ban) to that player. This helps maintain order and cleanliness on the server, ensuring a safe and comfortable gaming environment for all participants.
Installation
Install Metamod:Source and CounterStrikeSharp. To enable the ban functionality, you need CS2 Admin System.
Download WarnSystem.
Extract the archive and upload it to your game server.
How to Access Commands?
Open the "addons/counterstrikesharp/configs" directory.
Find the "admins.json" file in the specified folder.
Inside the "admins.json" file, add the necessary flags for access to commands. For example:
After doing this, you will have access to the commands."76561198847871713": {
"identity": "76561198847871713",
"flags": [
"@admin/warn",
"@admin/unwarn"
],
"immunity": 100
}
Main Configuration (Config.yml)
https://github.com/ABKAM2023/CS2-WarnSy ... s/main.zip# Configuration file for WarnSystem
# Command for banning players
BanCommand: "mm_ban {0} {1} {2}"
# Maximum number of warnings before a 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}. Warnings remaining until ban: {Red}{WarningsLeft} {White}warnings."
# Warnings cleared message
WarningsClearedMessage: "<font color='green' class='fontSize-l'>Your warnings have been cleared.</font>"
# Administrator warnings cleared message
AdminWarningsClearedMessage: "[{Red}ADMIN{White}] Player {Green}{PlayerName}{White}'s warnings have been cleared."
# Administrator message when a player has no warnings
NoWarningsMessage: "[{Red}ADMIN{White}] Player {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. Warnings remaining until a ban: {WarningsLeft} warnings.</font>"

