Skip to content
shanapu edited this page Aug 29, 2019 · 2 revisions

MyStore - Core plugin

The core is the main plugin of the store. Without it, nothing works. It handles the sql connection, all database querys and is connected to all modules through natives and forwards. The core is responsible for checking flags, logging events & errors, reading the items config and building the store item menus.

Available commands

Player

sm_store
sm_shop
sm_inv
sm_inventory
sm_credits

Admin

sm_reloadconfig
sm_givecredits
sm_resetplayer

Console Variables (.csgo/cfg/sourcemod/mystore/core.cfg)

// Enable/disable plugin
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mystore_enable "1"

// Number of retries if the connection fails to estabilish with timeout
// -
// Default: "4"
// Minimum: "0.000000"
// Maximum: "10.000000"
mystore_database_retries "4"

// Timeout in seconds to wait for database connection before retry
// -
// Default: "10"
// Minimum: "0.000000"
// Maximum: "6.000000"
mystore_database_timeout "10"

// Number of credits a client starts with
// -
// Default: "0"
// Minimum: "0.000000"
mystore_startcredits "0"

// Flag to access the !store menu. Leave blank to disable.
// -
// Default: ""
mystore_access_flag ""

// Flag for VIP access (all items unlocked). Leave blank to disable.
// -
// Default: ""
mystore_vip_flag ""

// Flag for admin access. Leave blank to disable.
// -
// Default: "z"
mystore_admin_flag "z"

// Enable/disable confirmation windows.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
mystore_confirm "1"

// Enable/disable client data saving on client death.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
mystore_save_on_death "0"

// The chat tag to use for displaying messages (with colors).
// -
// Default: "{green}[MyStore] {default}"
mystore_chat_tag "{green}[MyStore] {default}"

// Name for the store for displaying messages & menus (no colors).
// -
// Default: "MyStore"
mystore_name "MyStore"

// If you enable this, items with flags will be shown in grey.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
mystore_show_vip_items "0"

// Set this to 1 for file logging and 2 to SQL logging. Leaving on 0 = disabled. 
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
mystore_logging "0"

// 4 = Log all events - Error, Admin, Event & Credit / 3 = No log credits - Log Error, Admin & Event / 2 = No log credits & events - Log Error & Admin / 1 = Only Log Error
// -
// Default: "4"
// Minimum: "1.000000"
// Maximum: "4.000000"
mystore_logging_level "4"

// Controls the give credits message visibility. 0 = public 1 = private 2 = no message
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
mystore_silent_givecredits "0"

// Set your custom chat commands for the store(!store (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
// -
// Default: "shop, item, mystore"
mystore_cmds "shop, item, mystore"

// Set your credits name
// -
// Default: "Credits"
mystore_credits_name "Credits"

// Enable to generate unique_id for items. Beware can really fuck up your item.txt on bad formating
// -
// Default: "0"
mystore_generate_uids "0"
Clone this wiki locally