Raised This Month: $535 Target: $400
 133% 

[L4D2] Shop [v4.5 | 20 March 2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
pan0s
Member
Join Date: Nov 2017
Plugin ID:
7620
Plugin Version:
4.5
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 04-28-2021 , 21: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: 8813
Size:  77.8 KB
    Name:  shop2.jpg
Views: 8536
Size:  71.9 KB
    Name:  shop3.jpg
Views: 8655
Size:  62.8 KB
    Name:  2.jpg
Views: 4896
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.2.zip (101.3 KB, 270 views)
    File Type: zip shop_v.4.3.zip (266.3 KB, 158 views)
    File Type: zip shop_v.4.5.zip (308.9 KB, 1009 views)
    File Type: zip shop_v.4.4.zip (282.5 KB, 422 views)
    File Type: inc pan0s.inc (22.1 KB, 92 views)
    __________________

    Last edited by pan0s; 11-20-2022 at 06:21. Reason: update version
    pan0s is offline
    VladimirTk
    Senior Member
    Join Date: Apr 2021
    Location: Perú - Latino América
    Old 04-28-2021 , 22:32   Re: [L4D2] Shop (29 April 2021)
    Reply With Quote #2

    Excellent contribution, right now I will try it, would suggestions be accepted?

    Last edited by VladimirTk; 04-28-2021 at 22:33. Reason: None
    VladimirTk is offline
    VladimirTk
    Senior Member
    Join Date: Apr 2021
    Location: Perú - Latino América
    Old 04-28-2021 , 22:36   Re: [L4D2] Shop (29 April 2021)
    Reply With Quote #3

    I register this after using it in Versus / confrontation

    L 04/28/2021 - 20:28:00: [SM] Blaming: l4d2_shop.smx
    L 04/28/2021 - 20:28:00: [SM] Call stack trace:
    L 04/28/2021 - 20:28:00: [SM] [0] IsClientConnected
    L 04/28/2021 - 20:28:00: [SM] [1] Line 28, E:\steamcmd\l4d2_sv\left4dead2\addons\sourcem od\scripting\include\pan0s.inc::IsValidClient
    L 04/28/2021 - 20:28:01: [SM] [2] Line 2037, E:\steamcmd\l4d2_sv\left4dead2\addons\sourcem od\scripting\l4d2_shop.sp::GetPlayerList
    L 04/28/2021 - 20:28:01: [SM] [3] Line 1942, E:\steamcmd\l4d2_sv\left4dead2\addons\sourcem od\scripting\l4d2_shop.sp::MenuPlayerList
    L 04/28/2021 - 20:28:01: [SM] [4] Line 1906, E:\steamcmd\l4d2_sv\left4dead2\addons\sourcem od\scripting\l4d2_shop.sp::MenuPointValuesLis tHandler

    Last edited by VladimirTk; 04-28-2021 at 22:37.
    VladimirTk is offline
    pan0s
    Member
    Join Date: Nov 2017
    Old 04-28-2021 , 22:54   Re: [L4D2] Shop (29 April 2021)
    Reply With Quote #4

    Quote:
    Originally Posted by VladimirTk View Post
    Excellent contribution, right now I will try it, would suggestions be accepted?
    Yes, you can make any suggestion.

    Quote:
    Originally Posted by VladimirTk View Post
    I register this after using it in Versus / confrontation

    L 04/28/2021 - 20:28:00: [SM] Blaming: l4d2_shop.smx
    L 04/28/2021 - 20:28:00: [SM] Call stack trace:
    L 04/28/2021 - 20:28:00: [SM] [0] IsClientConnected
    L 04/28/2021 - 20:28:00: [SM] [1] Line 28, E:\steamcmd\l4d2_sv\left4dead2\addons\sourcem od\scripting\include\pan0s.inc::IsValidClient
    L 04/28/2021 - 20:28:01: [SM] [2] Line 2037, E:\steamcmd\l4d2_sv\left4dead2\addons\sourcem od\scripting\l4d2_shop.sp::GetPlayerList
    L 04/28/2021 - 20:28:01: [SM] [3] Line 1942, E:\steamcmd\l4d2_sv\left4dead2\addons\sourcem od\scripting\l4d2_shop.sp::MenuPlayerList
    L 04/28/2021 - 20:28:01: [SM] [4] Line 1906, E:\steamcmd\l4d2_sv\left4dead2\addons\sourcem od\scripting\l4d2_shop.sp::MenuPointValuesLis tHandler
    Did you compile it? or just install .smx?
    I need more error information to fix it, something likes that Client index 0 is not valid.

    btw, you may try delete IsClientConnected(IsClientConnected) function on pan0s.inc or delete the checking IsValidClient(i) on line 2037 of l4d2_shop. Then, compile it and try again.

    Last edited by pan0s; 04-28-2021 at 22:56.
    pan0s is offline
    VladimirTk
    Senior Member
    Join Date: Apr 2021
    Location: Perú - Latino América
    Old 04-28-2021 , 23:25   Re: [L4D2] Shop (29 April 2021)
    Reply With Quote #5

    Quote:
    Originally Posted by pan0s View Post
    Yes, you can make any suggestion.



    Did you compile it? or just install .smx?
    I need more error information to fix it, something likes that Client index 0 is not valid.

    btw, you may try delete IsClientConnected(IsClientConnected) function on pan0s.inc or delete the checking IsValidClient(i) on line 2037 of l4d2_shop. Then, compile it and try again.
    can you add me to your steam account? (My Steam 1133298511) I would not like to fill this post with messages but I will still report errors, right now i'm busy but when i finish i will compile it as it tells me


    My english is terrible

    Last edited by VladimirTk; 04-28-2021 at 23:28.
    VladimirTk is offline
    Elite Biker
    Junior Member
    Join Date: Nov 2020
    Location: The 13 Blessings
    Old 04-29-2021 , 03:45   Re: [L4D2] Shop (29 April 2021)
    Reply With Quote #6

    [All above was Removed]

    - Suggestions:


    - Remove the sm_kill command it's just annoying Or give an option to remove it in the CFG.
    - Available to disable category's in the CFG.
    - (Survivors Only) Add an effect item called "Sugar Rush" it acts like adrenaline. (sm_buy sugar).
    - Permanent Fire skin (It adds fire on top of the player and hands maybe)
    -
    Add a changelog to let us know what is going on and what you fixed or not.
    - Add Autobuy (sm_autobuy) menu that whenever you don't have it, It will buy it if you have the points and you have to manually enable the items that you want to autobuy them in one round in the CFG you will be available change the items/weapons that you can choice what can be "autobuy".


    - Last words:

    I really loved the plugin i really would be very happy if this plugin will be one of the best (Within in the shops category plugins i mean).
    The only things it missing is testing and giving more description what your plugin can do.

    __________________
    - 𝓣𝓱𝓮 𝓕𝓵𝓪𝓶𝓲𝓷𝓰 𝓐𝓽 𝓣𝓱𝓮 𝓒𝓸𝓷𝓽𝓲𝓷𝓮𝓷𝓽𝓪𝓵.

    Last edited by Elite Biker; 06-09-2021 at 15:51.
    Elite Biker is offline
    mikaelangelis
    Senior Member
    Join Date: Oct 2017
    Old 04-29-2021 , 03:59   Re: [L4D2] Shop (29 April 2021)
    Reply With Quote #7

    Could you assign a moveable object as Shop checkpoint? E.g: shop assigned to a Trash bin, or alarmed car.... whenever a survivor wants to buy items, he/she needs to reach that object and press E (use) key
    mikaelangelis is offline
    pan0s
    Member
    Join Date: Nov 2017
    Old 04-29-2021 , 06:41   Re: [L4D2] Shop (29 April 2021)
    Reply With Quote #8

    Quote:
    Originally Posted by VladimirTk View Post
    can you add me to your steam account? (My Steam 1133298511) I would not like to fill this post with messages but I will still report errors, right now i'm busy but when i finish i will compile it as it tells me


    My english is terrible
    I have added you.

    Quote:
    Originally Posted by Elite Biker View Post
    (I'm using a listen server to test)



    - Problems I am having:


    What is the "Gold/Blue/Gray" Ammo?
    You can't disable category's.
    transfer money/admin setpoints don't work.


    - Sadly didn't check:

    Can you sm_buy <stuff>?


    - Suggestions:


    - Remove the sm_kill command it's just annoying Or give an option to remove it in the CFG.
    - Available to disable category's in the CFG.
    - (Survivors Only) Add an effect item called "Sugar Rush" it acts like adrenaline. (sm_buy sugar).
    - Permanent Fire skin (It adds fire on top of the player and hands maybe)
    -
    Add a changelog to let us know what is going on and what you fixed or not.
    - Add Autobuy (sm_autobuy) menu that whenever you don't have it, It will buy it if you have the points and you have to manually enable the items that you want to autobuy them in one round in the CFG you will be available change the items/weapons that you can choice what can be "autobuy".


    - Last words:

    I really loved the plugin i really would be very happy if this plugin will be one of the best (Within in the shops category plugins i mean).
    The only things it missing is testing and giving more description what your plugin can do.

    1. What is the "Gold/Blue/Gray" Ammo? it means Laser tag
    2. transfer money/admin setpoints don't work. Tell me the maximum players can be joined into your server (I have just tested the plugin on 4 players co-op server), and can it display the menu normally? (Select action, Select point, select users?)
    3. sm_buy <stuff> yup, it can be supported.
    4. sm_kill I will add an option to disable !kill on cfg.
    5. Well, if you want to add special functions(SF), you need to provide the source code for me.
    6. About the category disabling/enabling, um... now the item can be disabled by setting the cost to -1, but it can still be supported too.
    7. To disable SF, I prefer doing that by setting the cost to -1 on next version. (Can't buy, Can't use)

    Thank you for your comments. I just use it on the 4-players co-op server, so there may be some problems over 4 players.
    it seems the problems that are just the checking client index now.
    Add me Discord by id pan#6098, I will send the next version plugin to u. After testing, I will release it here.

    Quote:
    Originally Posted by mikaelangelis View Post
    Could you assign a moveable object as Shop checkpoint? E.g: shop assigned to a Trash bin, or alarmed car.... whenever a survivor wants to buy items, he/she needs to reach that object and press E (use) key
    do you mean native .inc and creating 'use plugin' function for other plugins to get/set functions? If yes, um... I will refer other plugin to try doing that becuz I have no experience for it..

    Last edited by pan0s; 05-03-2021 at 17:32.
    pan0s is offline
    pan0s
    Member
    Join Date: Nov 2017
    Old 04-29-2021 , 13:18   Re: [L4D2] Shop v2.2 (30 April 2021)
    Reply With Quote #9

    v2.2 (30 April 2021) updated, please remove the old cfg file to get the latest cfg file,

    Last edited by pan0s; 04-29-2021 at 13:55.
    pan0s is offline
    mikaelangelis
    Senior Member
    Join Date: Oct 2017
    Old 04-29-2021 , 14:16   Re: [L4D2] Shop (29 April 2021)
    Reply With Quote #10

    Quote:
    Originally Posted by pan0s View Post


    do you mean native .inc and creating 'use plugin' function for other plugins to get/set functions? If yes, um... I will refer other plugin to try doing that becuz I have no experience for it..
    Yeah, like... when you press E (use) key to interact with object, buy menu panel will display. Do you know extinguisher flamethrower plugin by silvers? it is kinda like that
    mikaelangelis is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 14:45.


    Powered by vBulletin®
    Copyright ©2000 - 2023, vBulletin Solutions, Inc.
    Theme made by Freecode