This plugin adds a unique shop in the game that contains a variety of different settings which makes it highly customizable. The shop has got a special points system that can be activated through the configuration file. It also has an API which allows you to easily add more items, as well as remove some of the default ones.
Bear in mind that the plugin consists of two different files that need to be added in the plugins list.
The files custom_shop.amxx and cshop_items.amxx go in the plugins folder. The first one is the main plugin, i.e. the shop can't work without it. The second one contains all the default shop items, so you can decide not to add it if you plan to add your own custom items.
The files custom_shop.sma and cshop_items.sma go in the scripting folder. It is highly recommended to compile them locally and replace them with the new .amxx files.
The file customshop.inc goes in scripting/include. This is the plugin's API. There you can find all of the functions that are used to create sub-plugins.
The file cshop_settings.inc goes in scripting/include.
In configs/plugins.ini you need to add onlycustom_shop.amxx.
In configs/plugins-cshop.ini you need to add cshop_items.amxx. All sub-plugins go in that file. You can add them in configs/plugins.ini as well, but they must be placed underneath custom_shop.amxx.
☄ Default items
This is a list of all items that are added in the shop by default. Names, prices, limits and everything else can be changed by editing CustomShopItems.ini, which is automatically created in your configs folder after restarting the server with the plugin added. Items can also be changed directly from the server by using the command
+50 Health -- Gives +50 HP.
+100 Armor -- Gives +100 AP.
Unlimited Clip -- Unlimited bullets for your curent weapon (no reload). This item cannot be activated on a weapon that doesn't use bullets.
Unlimited Ammo -- Unlimited backpack ammo for your current weapon. This item cannot be activated on a weapon that doesn't use bullets.
Bomber -- Gives +20 HE grenades.
Silent Footsteps -- You won't make any sounds when walking.
Faster Speed -- Increases your speed.
Low Gravity -- Allows you to jump higher.
Chameleon -- You get a random skin from the enemy team.
Drugs (Speed + Health) -- Distorts your screen, increases your speed and adds additional health.
Transparency -- Makes you transparent.
Invisibility (15 Seconds) -- You become fully invisible for 15 seconds.
Double Damage -- Doubles the damage you make.
Godmode (5 Seconds) -- You become immortal for 5 seconds.
Health Regeneration -- You get +1 HP each second.
Armor Regeneration -- You get +10 AP each second.
☄ Admin commands
cshop_points <nick|#userid> <amount> -- Gives/Takes points to/from the player.
cshop_items -- A list of all registered items.
cshop_edit -- Opens the In-Game Shop Editor.
cshop_reset_points -- Resets everyone's points.
The settings can be changed in the file configs/CustomShop.ini, and the messages in data/lang/CustomShop.txt.
CSHOP_PREFIX -- Prefix for chat messages.
DEFAULT: !n[!tCustom Shop!n]
CSHOP_TITLE -- Menu title..
DEFAULT: \yOciXCrom's \rCustom Shop
CSHOP_TITLE_PAGE -- The text that will be added to the title if the menu has more than one page.
DEFAULT: \d| \w%page%:\d
CSHOP_TEAM_NAMES -- Team names when using %team% in the title.
CSHOP_SOUND_EXPIRE -- The sound when an item expires.
CSHOP_SOUND_OPEN -- The sound when you open the shop.
CSHOP_BUYSOUND_TYPE -- 0 = everyone around the player hears the sound when you buy an item; 1 = only the player hears it
CSHOP_EXPIRESOUND_TYPE -- 0 = everyone around the player hears the sound when an item expires; 1 = only the player hears it
CSHOP_OPENSOUND_TYPE -- 0 = everyone around the player hears the sound when the shop is opened; 1 = only the player hears it
CSHOP_COMMANDS -- Commands that open the shop.
DEFAULT: say /shop , say_team /shop , customshop
CSHOP_PREVPAGE -- Previous page field.
DEFAULT: Previous page
CSHOP_NEXTPAGE -- Next page field.
DEFAULT: Next page
CSHOP_EXITMENU -- Exit menu field.
CSHOP_PERPAGE -- Number of items on each page.
CSHOP_FLAG -- If you want the shop to be available for players with a certain flag only.
CSHOP_TEAM -- If you want the shop to be available for a certain team only.
CSHOP_SHOW_TEAMED -- Controls whether items that aren't meant for your team will be displayed in the menu.
CSHOP_ITEM_TEAMED -- Text for items that aren't meant for your team.
CSHOP_SHOW_FLAGGED -- Controls whether items that you don't have access to will be displayed in the menu.
CSHOP_ITEM_FLAGGED -- Text for items that you don't have access to.
CSHOP_LIMIT_TYPE -- How is the item limit going to work (0 = every players has his own limit; 1 = every team has his own limit; 2 = limit is the same for all players).
CSHOP_HIDE_LIMITED -- If you want to hide items that have reached their limit.
CSHOP_OPEN_AT_SPAWN -- If you want the shop to be displayed on spawn.
CSHOP_REOPEN_AFTER_USE -- Whether the shop will stay open after purchasing an item.
CSHOP_POINTS_ENABLE -- Enables/Disables the points system.
CSHOP_MONEY_NAME -- Money name.
CSHOP_POINTS_NAME -- Points name.
CSHOP_MONEY_CURRENCY -- Money currency.
CSHOP_POINTS_CURRENCY -- Points currency.
CSHOP_POINTS_SAVE -- Save points? (0 = yes; 1 = no)
CSHOP_SAVE_TYPE -- How to save the points (0 = name; 1 = IP address; 2= SteamID)
CSHOP_POINTS_COMMANDS -- Commands that allow you to see how many points you have.
DEFAULT: say /points , say_team /points
CSHOP_REWARD_NORMAL -- Reward for a normal kill.
CSHOP_REWARD_HEADSHOT -- Reward for a headshot kill.
CSHOP_REWARD_KNIFE -- Reward for a knife kill.
CSHOP_REWARD_VIP -- If you want VIP users to get additional points for each kill
CSHOP_VIP_FLAG -- VIP flag for the setting above.
CSHOP_POINTS_TEAMKILL -- Controls whether you get points for killing teammates.
CSHOP_KILL_MESSAGE -- Enables/Disables the message when you kill a player.
CSHOP_HUD_ENABLED -- Enables/Disables points being displayed on the HUD.
CSHOP_HUD_RED -- Red color amount for the HUD message.
CSHOP_HUD_GREEN -- Green color amount for the HUD message.
CSHOP_HUD_BLUE -- Blue color amount for the HUD message.
CSHOP_HUD_X -- X position for the HUD message.
CSHOP_HUD_Y -- Y position for the HUD message.
☄ Using a currency from another plugin/mod
The plugin has the ability to use another plugin's natives instead of default money. In simple terms - you can make the shop work with Ammo Packs, BaseBuilder Credits, JBPacks etc. To achieve that, you need to edit the following lines in the file cshop_settings.inc:
The plugin also has an API, i.e. a library (.inc file), which allows you to make sub-plugins that will add additional items in the shop and many other things. Here's an example of a plugin that adds No Recoil in the shop (removes recoil when shooting).
What are you talking about? Points are still here, of course. Read the description and take a look at the configuration file. You simply need to enable them. Literally every third sentence in the first comment contains the word "points".