Welcome to LegendCS – With grace, in your face !

 
Last Updated: 03-29-2025, 06:57 AM
Name: [Plugin CS2] WarnSystem
Category: Plugins
by: Berserk
Downloads: 0
Views: 6
MD5: ba6cd0e41da540a53080a03e383fddce
Your rating: N/A
Average rating: N/A
 
Description:
Description: 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. 

Author: ABKAM2023

Installation:

  1. Install Metamod:Source and CounterStrikeSharp. To enable the ban functionality, you need CS2 Admin System.
  2. Download WarnSystem.
  3. Extract the archive and upload it to your game server.


Commands:

!warn
issue a warning to a player. 
!unwarn
clear a player's warnings. 

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 for access to commands. For example:

PHP Code: 
"76561198847871713": {
    "identity""76561198847871713",
    "flags": [
        "@admin/warn",
        "@admin/unwarn"
    ],
    "immunity"100





After doing this, you will have access to the commands. 


Main Configuration (Config.yml)

PHP Code: 
# 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>" 


[-]
Leave a comment
To leave a comment you must log in.