/sm-plugin-Shop-Core

An advanced in game market

Primary LanguageSourcePawnGNU General Public License v3.0GPL-3.0

Status Build Status Discord
Passive updates Build Discord

Requirements

  • SourceMod 1.10+
  • Database section in addons/sourcemod/configs/databases.cfg For SQLite usage, shop supports MySQL and recommended to use
"shop"
{
        "driver"    "sqlite"
        "database"  "shop_core"
}

Installation

  • Extract archive from Releases page to server directory
  • (Optional) Setup sorting if you need (create a file addons/sourcemod/configs/shop/shop_sort.txt and add categories. Example:
aura
ability
stuff

Category name can be found in code of modules. Example

CategoryId:category_id = Shop_RegisterCategory("stuff", "Разное", ""); // Category unique name - stuff

or

#define CATEGORY    "aura"// Category unique name - aura

// some lines below
new CategoryId:category_id = Shop_RegisterCategory(CATEGORY, sName, sDescription); // Category name in constant CATEGORY

Useless links