Welcome to LegendCS – With grace, in your face !

 
Last Updated: 03-29-2025, 08:19 AM
Name: [Plugin CS2] SteamGrouprestrict
Category: Plugins
by: Berserk
Downloads: 0
Views: 6
MD5: f975c0bbba1c0e10dd5e58581deeef3a
Your rating: N/A
Average rating: N/A
 
Description:
Description: This CSSharp plugin restricts chat commands to players who have not joined the steam group 

Author: BMathers35

Requirements:

Features:
  • Restrict chat commands
  • Steam group member control

Usage:

This plugin checks for players who joined the steam group on the first login to the server, if the player joined the steam group on the first login to the server, they will be added to the allowed list.
Players who have not joined the steam group, i.e. are not on the allowed list, will be rechecked each time they respawn.
If a player logs out of the server, the player will be deleted from the allowed list.

Installation :
  • Put the plugin files in the "/addons/counterstrikesharp/plugins/" folder.
  • When you start the plugin, the configuration file will be automatically created in the path "/addons/counterstrikesharp/configs/plugins/SteamGroupRestrict". Open the file and fill in the fields according to your needs.
  • After you have made all your settings, simply restart the plugin.

PHP Code: 
{
  "GeneralSettings": {
    // Enter the Group ID of your Steam Group here (found on the Edit Group Profile page).
    "SteamGroupId""",
    // Obtain an API Key from this page https://steamcommunity.com/dev/apikey and fill in this field.
    "SteamApiKey""",
    "Prefix""{Blue}[SGR]"
  },
  "Messages": {
    "Unauthorized""{Red}You must have joined our steam group to use this command.",
    "NotJoinedGroup""{Red}You don't seem to have joined our Steam group.",
    "JoinedGroup""{Green}Congratulations! You have joined our Steam group and can start using commands."
  },
  "BlockedCommands": [
      // Commands to be added to this list must be preceded by ! or /. 
      // You can add as many commands as you want according to the examples below.
      "!knife",
      "!ws",
      "/knife",
      "/ws"
  ],
  "ConfigVersion"1


Commands:

!group_check - Check if you have joined the Steam group. (The command name can be edited from the configuration file) 

Default config.json file

PHP Code: 
{
  "GeneralSettings": {
    "SteamGroupId""-",
    "SteamApiKey""-",
    "Prefix""{Blue}[SGR]"
  },
  "Messages": {
    "Unauthorized""{Red}You must have joined our steam group to use this command.",
    "NotJoinedGroup""{Red}You don't seem to have joined our Steam group.",
    "JoinedGroup""{Green}Congratulations! You have joined our Steam group and can start using commands."
  },
  "BlockedCommands": [],
  "ConfigVersion"1



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