Skip to content

a2Labs-cc/SW2-GoldMember

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[SwiftlyS2] GoldMember

GitHub Release GitHub Issues GitHub Downloads GitHub Stars
Made by aga

Overview

SwiftlyS2-GoldMember is a premium player benefits plugin for SwiftlyS2.

It automatically detects players who are GoldMembers by checking for a specific marker in their name and provides them with various benefits:

  • Items (weapons like taser, healthshot, etc.)
  • Health bonus
  • Armor bonus
  • Money bonus
  • Command restrictions (restrict certain commands to GoldMembers only)
  • Ads system to inform non-members about benefits

Support

Need help or have questions? Join our Discord server:

Discord

Download Shortcuts

  • 📦  Download Latest Plugin VersionClick Here
  • ⚙️  Download Latest SwiftlyS2 VersionClick Here

Installation

  1. Download/build the plugin.
  2. Copy the published plugin folder to your server:
.../game/csgo/addons/swiftlys2/plugins/GoldMember/
  1. Ensure the plugin has its resources/ folder alongside the DLL (translations, gamedata).
  2. Start/restart the server.

Configuration

The plugin uses SwiftlyS2's JSON config system.

  • File name: config.json
  • Section: GoldMember

On first run the config will be created automatically. The exact resolved path is logged on startup:

GoldMember: config.json path: ...

Key Configuration Options

  • NameDns: The marker to look for in player names (e.g., "[GoldMember]")
  • Items: List of items to give to GoldMembers (default: ["weapon_taser", "weapon_healthshot"])
  • GiveItems: Enable/disable item giving (default: true)
  • GiveHealth: Enable/disable health bonus (default: true)
  • Health: Health amount to give (default: 100)
  • GiveArmor: Enable/disable armor bonus (default: true)
  • Armor: Armor amount to give (default: 100)
  • GiveMoney: Enable/disable money bonus (default: true)
  • Money: Money amount or increment to give (default: "1000")
  • ShowAds: Enable/disable advertisement messages (default: true)
  • AdsTimer: How often to show ads in seconds (default: 60.0)
  • RestrictedCommands: List of commands only GoldMembers can use (default: empty)
  • Prefix: Chat message prefix (default: "[GoldMember]")
  • PrefixColor: Color for the prefix (default: "[gold]")

How It Works

GoldMember Detection

The plugin checks player names for the configured NameDns marker. Players with this marker in their name are considered GoldMembers.

Benefits

GoldMembers receive benefits automatically when they spawn:

  • Items are given only if they don't already have them
  • Health and armor are set to the configured values
  • Money is added (or set) according to the configuration
  • Restricted commands can only be used by GoldMembers

Ads System

The plugin periodically sends messages to all players informing them about GoldMember benefits and how to become one.

Commands

This plugin doesn't add new commands to the game. Instead, it can restrict existing commands to GoldMembers only by adding them to the RestrictedCommands config list.

For example, if you add "say" to RestrictedCommands, only GoldMembers will be able to use the say command.

Building

dotnet build

Credits

About

SwiftlyS2 GoldMember

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages