View Single Post
Author Message
pan0s
Senior Member
Join Date: Nov 2017
Old 04-28-2021 , 20:28   [L4D2] Shop [v4.5 | 20 March 2022]
Reply With Quote #1

Description:
Well, it is a plugin updated from [L4D2] Item buying System v1.36
I re-coded the source and updated more functions.
Name:  shop1.jpg
Views: 17059
Size:  77.8 KB
Name:  shop2.jpg
Views: 16482
Size:  71.9 KB
Name:  shop3.jpg
Views: 16729
Size:  62.8 KB
Name:  2.jpg
Views: 12884
Size:  37.4 KB
Update Log:
Spoiler

Features:
  • Native functions call
  • Save functions (Using SQLite Database, no need to setup anything)
  • Support Dedicated or Listen server
  • Support !buy <item> command
  • Points Transfer
  • Handling Fee (for Points Transfer only)
  • More useful information for clients
  • Collected all items into the shop
  • Special Functions (Trial / Permanent)
  • Special Bag (Enable/Disable Special Functions)
  • Admin Menu (Reward, Confiscate, Set)
  • Log actions into the .log file
  • Multiple Languages
  • New code style
  • etc.

Current Special Functions (SF):
Extra items:
How to use?
  • Type !buy in the game to open Shop menu.
  • Type !buy <item> in the game to buy an item by command.
  • type !admin and find 'Shop Commands' to open the shop admin menu.
  • type !rb or !repeatbuy to repeatedly buy.
  • type !kill to suicide.
  • Edit an item cost in the cfg to -1 to disable the item.
  • You can copy others plugin functions to make your own special functions.

When will save points?
To avoid making the server lag, I just added two triggers for it.
  • Round end
  • Player disconnected

Native functions:
Spoiler


Notice:
If you found any bugs, please feel free to let me know.

Pre-Installation:
Nope. (all file included in .zip)

Installation:
Just unzip it to the sourcemod directory.

Translations:
  • en - pan0s
  • zho - pan0s
  • chi - pan0s

Contact me:
Steam


Way to add a new SF:
You can refer l4d2_shop_XXXX, XXXX is SF file name.
Spoiler


Ways to add a new Item:
Spoiler


https://forums.alliedmods.net/showpo...1&postcount=52
https://forums.alliedmods.net/showpo...1&postcount=89

Use pan0s.inc v1.2 to compile all .sp
Attached Files
File Type: zip shop_v.4.5.zip (308.9 KB, 3084 views)
File Type: inc pan0s.inc (22.1 KB, 904 views)
__________________

Last edited by pan0s; 05-15-2023 at 08:10. Reason: update version
pan0s is offline