Raised This Month: $231 Target: $400
 57% 

[L4D2] Shop [v2.6 | 4 May 2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
pan0s
Junior Member
Join Date: Nov 2017
Plugin ID:
7620
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 04-28-2021 , 20:28   [L4D2] Shop [v2.6 | 4 May 2021]
    Reply With Quote #1

    Descptions:
    Well, it is a plugin updated from [L4D2] Item buying System v1.36
    I re-coded the source and updated more functions.

    Update Log:
    Code:
    v2.6 (4 May 2021)
    - Fixed !buy heal command
    v2.52 (3 May 2021)
    - Changed MaxClients to MAXPLAYERS - Supported 18+ players' server. - Fixed sql update statement for SF.
    v2.4 (1 May 2021)
    - Cleared the hard-coded print text. - Flxed when player left, SF doesn't not clear. - Removed cost limitation
    v2.3 (30 April 2021)
    - Added the checking for Infected Shop (cvar_infected_buy_respawn_on in .cfg) - Simplified shortcut variables - Changed the Points Transfer menu title
    v2.2 (30 April 2021):
    - Changed MaxClients from 20 to 18 to fix Client index 19 is invalid. - Added !buy <item> command (Shortcut item names provided by: Elite Biker) - Added disabling option for SF (just set the cost of it to -1) - Added disabling specified shop - Added transferring message to all players - Fixed Infected Shop bug. - Added cfg cvar_shop_infected_respawn to decide Where player respawn after buying infected
    Features:
    • 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):
    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 !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

    ConVars:
    PHP Code:
    // This file was auto-generated by SourceMod (v1.10.0.6502)
    // ConVars for plugin "l4d2_shop.smx"


    // Will notify all players when a player buy an item? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_buy_notify_all_on "1"

    // How many points a adrenaline costs. -1=Disabled
    // -
    // Default: "43"
    cvar_cost_adrenaline "43"

    // How many points an auto-shotgun costs. -1=Disabled
    // -
    // Default: "30"
    cvar_cost_auto_shotgun "30"

    // How many points a baseball_bat bat costs. -1=Disabled
    // -
    // Default: "9"
    cvar_cost_baseball_bat "9"

    // How many points the chainsaw costs. -1=Disabled
    // -
    // Default: "16"
    cvar_cost_chainsaw "16"

    // How many points a cricket_bat costs. -1=Disabled
    // -
    // Default: "9"
    cvar_cost_cricket_bat "9"

    // How many points a crowbar bat costs. -1=Disabled
    // -
    // Default: "9"
    cvar_cost_crowbar "9"

    // How many points a defib costs. -1=Disabled
    // -
    // Default: "50"
    cvar_cost_defib "50"

    // How many points the electric_guitar costs. -1=Disabled
    // -
    // Default: "9"
    cvar_cost_electric_guitar "9"

    // How many points the explosive bullets upgade costs. -1=Disabled
    // -
    // Default: "12"
    cvar_cost_explosive "12"

    // How many points a pack of explosive bullets upgade costs. -1=Disabled
    // -
    // Default: "18"
    cvar_cost_explosivepack "18"

    // How many points a fireaxe costs. -1=Disabled
    // -
    // Default: "9"
    cvar_cost_fireaxe "9"

    // How many points a fireworks crate costs. -1=Disabled
    // -
    // Default: "18"
    cvar_cost_firework "18"

    // How many points a flamethrower costs. -1=Disabled
    // -
    // Default: "-1"
    cvar_cost_flamethrower "-1"

    // How many points a frying_pan costs. -1=Disabled
    // -
    // Default: "9"
    cvar_cost_frying_pan "9"

    // How many points the gascan costs. -1=Disabled
    // -
    // Default: "18"
    cvar_cost_gascan "18"

    // How many points the golfclub costs. -1=Disabled
    // -
    // Default: "9"
    cvar_cost_golfclub "9"

    // How many points a grenade launcher costs. -1=Disabled
    // -
    // Default: "38"
    cvar_cost_grenade "38"

    // How many points a heal costs. -1=Disabled
    // -
    // Default: "99"
    cvar_cost_heal "99"

    // How many points a boomer costs. -1=Disabled
    // -
    // Default: "10"
    cvar_cost_infected_boomer "10"

    // How many points a charger costs. -1=Disabled
    // -
    // Default: "7"
    cvar_cost_infected_charger "7"

    // How many points a heal costs (for infected).
    // -
    // Default: "10"
    cvar_cost_infected_heal "10"

    // How many points a hunter costs. -1=Disabled
    // -
    // Default: "5"
    cvar_cost_infected_hunter "5"

    // How many points a jockey costs. -1=Disabled
    // -
    // Default: "7"
    cvar_cost_infected_jockey "7"

    // How many points a mini-event/mob costs. -1=Disabled
    // -
    // Default: "18"
    cvar_cost_infected_mob "18"

    // How many points a mega mob costs. -1=Disabled
    // -
    // Default: "23"
    cvar_cost_infected_mob_mega "23"

    // How many points a smoker costs. -1=Disabled
    // -
    // Default: "7"
    cvar_cost_infected_smoker "7"

    // How many points a spitter costs. -1=Disabled
    // -
    // Default: "7"
    cvar_cost_infected_spitter "7"

    // How many points it takes to end it all.
    // -
    // Default: "4"
    cvar_cost_infected_suicide "4"

    // How many points a tank costs. -1=Disabled
    // -
    // Default: "50"
    cvar_cost_infected_tank "50"

    // How many points a witch costs. -1=Disabled
    // -
    // Default: "30"
    cvar_cost_infected_witch "30"

    // How many points a katana costs. -1=Disabled
    // -
    // Default: "9"
    cvar_cost_katana "9"

    // How many points a knife costs. -1=Disabled
    // -
    // Default: "5"
    cvar_cost_knife "5"

    // How many points a laser sight costs. -1=Disabled
    // -
    // Default: "10"
    cvar_cost_laser "10"

    // How many points a machete costs. -1=Disabled
    // -
    // Default: "9"
    cvar_cost_machete "9"

    // How many points a Magnum costs. -1=Disabled
    // -
    // Default: "13"
    cvar_cost_magnum "13"

    // How many points a medkit costs. -1=Disabled
    // -
    // Default: "88"
    cvar_cost_medkit "88"

    // How many points a molotov costs. -1=Disabled
    // -
    // Default: "23"
    cvar_cost_molotov "23"

    // How many points a MP5 SMG costs. -1=Disabled
    // -
    // Default: "13"
    cvar_cost_mp5 "13"

    // How many points an oxygen tank costs. -1=Disabled
    // -
    // Default: "18"
    cvar_cost_oxygen "18"

    // How many points a pills costs. -1=Disabled
    // -
    // Default: "43"
    cvar_cost_painpills "43"

    // How many points permanent auto bhop.
    // -
    // Default: "500"
    cvar_cost_permanent_bhop "500"

    // How many points the permanent blue ammo.
    // -
    // Default: "700"
    cvar_cost_permanent_blue_ammo "700"

    // How many points the permanent gold ammo.
    // -
    // Default: "800"
    cvar_cost_permanent_gold_ammo "800"

    // How many points the permanent gray ammo.
    // -
    // Default: "80"
    cvar_cost_permanent_gray_ammo "80"

    // How many points the permanent green ammo.
    // -
    // Default: "600"
    cvar_cost_permanent_green_ammo "600"

    // How many points the permanent red ammo.
    // -
    // Default: "999"
    cvar_cost_permanent_red_ammo "999"

    // How many points a pipe-bomb costs. -1=Disabled
    // -
    // Default: "28"
    cvar_cost_pipebomb "28"

    // How many points an extra pistol costs. -1=Disabled
    // -
    // Default: "5"
    cvar_cost_pistol "5"

    // How many points the pitchfork costs. -1=Disabled
    // -
    // Default: "9"
    cvar_cost_pitchfork "9"

    // How many points a propane tank costs. -1=Disabled
    // -
    // Default: "18"
    cvar_cost_propane "18"

    // How many points an ammo refill costs. -1=Disabled
    // -
    // Default: "12"
    cvar_cost_refill "12"

    // How many points an AK47 costs. -1=Disabled
    // -
    // Default: "30"
    cvar_cost_rifles_ak47 "30"

    // How many points a desert rifle costs. -1=Disabled
    // -
    // Default: "30"
    cvar_cost_rifles_desert "30"

    // How many points a rifle costs. -1=Disabled
    // -
    // Default: "30"
    cvar_cost_rifles_m16 "30"

    // How many points a m60 costs. -1=Disabled
    // -
    // Default: "160"
    cvar_cost_rifles_m60 "160"

    // How many points a SG552 rifle costs. -1=Disabled
    // -
    // Default: "30"
    cvar_cost_rifles_sg552 "30"

    // How many points a chrome shotgun costs. -1=Disabled
    // -
    // Default: "13"
    cvar_cost_schrome_shotgun "13"

    // How many points a shotgun costs. -1=Disabled
    // -
    // Default: "13"
    cvar_cost_shotguns "13"

    // How many points the shovel costs. -1=Disabled
    // -
    // Default: "9"
    cvar_cost_shovel "9"

    // How many points a Silenced SMG costs. -1=Disabled
    // -
    // Default: "13"
    cvar_cost_silencedsmg "13"

    // How many points a smg costs. -1=Disabled
    // -
    // Default: "13"
    cvar_cost_smg "13"

    // How many points an AWP sniper rifle costs. -1=Disabled
    // -
    // Default: "25"
    cvar_cost_snipers_awp "25"

    // How many points a hunting rifle costs. -1=Disabled
    // -
    // Default: "25"
    cvar_cost_snipers_hunting_rifle "25"

    // How many points a military sniper rifle costs. -1=Disabled
    // -
    // Default: "25"
    cvar_cost_snipers_military "25"

    // How many points a scout sniper rifle costs. -1=Disabled
    // -
    // Default: "20"
    cvar_cost_snipers_scout "20"

    // How many points a Spas Shotgun costs. -1=Disabled
    // -
    // Default: "30"
    cvar_cost_spas_shotgun "30"

    // How many points does incendiary ammo cost?
    // -
    // Default: "12"
    cvar_cost_special_burn "12"

    // How many points does a pack of incendiary ammo cost?
    // -
    // Default: "18"
    cvar_cost_special_burn_super "18"

    // How many points the tonfa costs. -1=Disabled
    // -
    // Default: "9"
    cvar_cost_tonfar "9"

    // How many points for trial auto bhop.
    // -
    // Default: "30"
    cvar_cost_trial_bhop "30"

    // How many points the trial blue ammo.
    // -
    // Default: "50"
    cvar_cost_trial_blue_ammo "50"

    // How many points the trial gold ammo.
    // -
    // Default: "60"
    cvar_cost_trial_gold_ammo "60"

    // How many points for the trial gray ammo.
    // -
    // Default: "15"
    cvar_cost_trial_gray_ammo "15"

    // How many points the trial green ammo.
    // -
    // Default: "40"
    cvar_cost_trial_green_ammo "40"

    // How many points the trial red ammo.
    // -
    // Default: "70"
    cvar_cost_trial_red_ammo "70"

    // How many points a vomitjar costs. -1=Disabled
    // -
    // Default: "28"
    cvar_cost_vomitjar "28"

    // How many points rewarded to player who used defibrillator 0=Disabled
    // -
    // Default: "5"
    // Minimum: "0.000000"
    cvar_earn_defibrillate "5"

    // How many points for healing someone. 0=Disabled
    // -
    // Default: "5"
    // Minimum: "0.000000"
    cvar_earn_heal "5"

    // How many points for killing a certain number of infected. 0=Disabled
    // -
    // Default: "1"
    // Minimum: "0.000000"
    cvar_earn_infected "1"

    // How many killed infected does it take to earn points? Headshot and minigun kills can be used to rank up extra kills. 0=Disabled
    // -
    // Default: "10"
    // Minimum: "0.000000"
    cvar_earn_infected_num "10"

    // How many points for protecting someone. 0=Disabled
    // -
    // Default: "1"
    // Minimum: "0.000000"
    cvar_earn_protect "1"

    // How many points rewarded to player who rescued the dead client. 0=Disabled
    // -
    // Default: "2"
    // Minimum: "0.000000"
    cvar_earn_rescued "2"

    // How many points for reviving someone. 0=Disabled
    // -
    // Default: "2"
    // Minimum: "0.000000"
    cvar_earn_revive "2"

    // How many points for reviving someone who is in ledge hang/ 0=Disabled
    // -
    // Default: "1"
    // Minimum: "0.000000"
    cvar_earn_revive_ledge_hang "1"

    // How many points for killing a special infected. 0=Disabled
    // -
    // Default: "1"
    // Minimum: "0.000000"
    cvar_earn_special "1"

    // How many points you get for burning a tank. 0=Disabled
    // -
    // Default: "3"
    // Minimum: "0.000000"
    cvar_earn_tank_burn "3"

    // How many additional points you get for killing a tank. 0=Disabled
    // -
    // Default: "2"
    // Minimum: "0.000000"
    cvar_earn_tank_killed "2"

    // How many points you get for killing a witch. 0=Disabled
    // -
    // Default: "10"
    // Minimum: "0.000000"
    cvar_earn_witch "10"

    // How many extra points you get for killing a witch in one shot. 0=Disabled
    // -
    // Default: "55"
    // Minimum: "0.000000"
    cvar_earn_witch_in_one_shot "55"

    // How many points you get [as a charger] after impact on survivor, for 1 pummel damage. 0=Disabled
    // -
    // Default: "1"
    // Minimum: "0.000000"
    cvar_iearn_charge "1"

    // How many points you get [as a charger] when hitting nearby survivors. 0=Disabled
    // -
    // Default: "1"
    // Minimum: "0.000000"
    cvar_iearn_charge_collateral "1"

    // How many points you get [as a smoker] when you pull a survivor. 0=Disabled
    // -
    // Default: "1"
    // Minimum: "0.000000"
    cvar_iearn_grab "1"

    // How many points infected get for hurting survivors a number of times. 0=Disabled
    // -
    // Default: "2"
    // Minimum: "0.000000"
    cvar_iearn_hurt "2"

    // How many points you get for incapacitating a survivor 0=Disabled
    // -
    // Default: "5"
    // Minimum: "0.000000"
    cvar_iearn_incapacitate "5"

    // How many points you get when jumping on a survivor. 0=Disabled
    // -
    // Default: "1"
    // Minimum: "0.000000"
    cvar_iearn_jockey_ride "1"

    // How many points you get [as a hunter] when you pounce a survivor. 0=Disabled
    // -
    // Default: "1"
    // Minimum: "0.000000"
    cvar_iearn_pounce "1"

    // How many points you get for killing a survivor 0=Disabled
    // -
    // Default: "10"
    // Minimum: "0.000000"
    cvar_iearn_survivor "10"

    // How many points you get [as a boomer] when you vomit/explode on a survivor. 0=Disabled
    // -
    // Default: "1"
    // Minimum: "0.000000"
    cvar_iearn_vomit "1"

    // Only dead infected can buy respawn? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_infected_buy_respawn_on "1"

    // Points spending on or off in coop mode? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_points_coop_on "1"

    // Point system on or off? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_points_on "1"

    // Points spending on or off in realism mode? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_points_realism_on "1"

    // Points spending on or off in scavenger mode? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_points_scavenger_on "1"

    // Points spending on or off in survival mode? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_points_survival_on "1"

    // Points spending on or off in team versus mode? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_points_team_versus_on "1"

    // Points spending on or off in versus mode? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_points_versus_on "1"

    // Will clear points every round? 0=OFF, 1=On (works with db_on=0 only)
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_round_clear_on "0"

    // Enable Soecial functions? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_sf_on "1"

    // Open the ammos shop?c 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_ammoss_on "1"

    // Open the guns shop? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_guns_on "1"

    // Open the infected item shop? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_infected_item_on "1"

    // Where do player respawn after buying infected? 0=Near Survivors, 1=Current location
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_infected_respawn "0"

    // Open the main shop? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_main_on "1"

    // Open the ammos shop?c 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_medicines_on "1"

    // Open the melees shop?c 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_melees_on "1"

    // Open the others shop?c 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_others_on "1"

    // Open the rifles shop? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_riflese_on "1"

    // Open the bag?c 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_sf_bag_on "1"

    // Open the ammos shop?c 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_sf_on "1"

    // Open the permanet shop?c 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_sf_permanet_on "1"

    // Open the tansfer shop?c 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_sf_transfer_on "1"

    // Open the trial shop?c 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_sf_trial_on "1"

    // Open the shotgunsc shop? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_shotguns_on "1"

    // Open the smgs shop? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_smgs_on "1"

    // Open the snupers shop? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_snipers_on "1"

    // Open the throwables shop?c 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_shop_throwables_on "1"

    // Can survivor suicide by !kill? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_suicide_cmd_on "1"

    // Percentage of handling fee for each transferring point.
    // -
    // Default: "20"
    // Minimum: "0.000000"
    // Maximum: "99.000000"
    cvar_transfer_handling_fee "20"

    // Will notify all players who did transferring? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_transfer_notify_all_on "1"

    // Allow player to transfer points? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    cvar_transfer_on "1"

    // Will server save points? 0=OFF, 1=On
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    db_on "1"

    // Seconds Laser will remain
    // -
    // Default: "0.8"
    // Minimum: "0.100000"
    l4d_lasertag_life "0.8"

    // Lasertag Offset
    // -
    // Default: "36"
    l4d_lasertag_offset "36"

    // LaserTagging for Pistols. 0=disable, 1=enable
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_lasertag_pistols "1"

    // LaserTagging for Rifles. 0=disable, 1=enable
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_lasertag_rifles "1"

    // LaserTagging for Shotguns. 0=disable, 1=enable
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_lasertag_shotguns "1"

    // LaserTagging for SMGs. 0=disable, 1=enable
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_lasertag_smgs "1"

    // LaserTagging for Sniper Rifles. 0=disable, 1=enable
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_lasertag_snipers "1"

    // Width of Laser
    // -
    // Default: "1.0"
    // Minimum: "1.000000"
    l4d_lasertag_width "1.0"

    // Points_Gift_On
    // -
    // Default: "v2.2"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    points_gift_on "v2.2"

    // Inovice display type. 0=simple, 1=detail
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    points_inovice_type "1"

    // How many tanks can be spawned in a round.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "60.000000"
    points_limit_tanks "1"

    // How many witches can be spawned in a round.
    // -
    // Default: "2"
    // Minimum: "0.000000"
    // Maximum: "60.000000"
    points_limit_witches "2" 
    Notice:
    If you found anybugs, please feel free to let me know.

    Pre-Installation:
    Nope.

    Installation:
    Just unzip it to the sourcemod directory.

    Translations:
    Only en, zho, chi

    Contect me:
    Steam
    Attached Files
    File Type: zip l4d2_shop_v2.6.zip (83.3 KB, 68 views)

    Last edited by pan0s; 05-05-2021 at 18:50.
    pan0s is offline
    VladimirTk
    Junior Member
    Join Date: Apr 2021
    Old 04-28-2021 , 21: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 21:33. Reason: None
    VladimirTk is offline
    VladimirTk
    Junior Member
    Join Date: Apr 2021
    Old 04-28-2021 , 21: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 21:37.
    VladimirTk is offline
    pan0s
    Junior Member
    Join Date: Nov 2017
    Old 04-28-2021 , 21: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 21:56.
    pan0s is offline
    VladimirTk
    Junior Member
    Join Date: Apr 2021
    Old 04-28-2021 , 22: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 22:28.
    VladimirTk is offline
    Elite Biker
    Junior Member
    Join Date: Nov 2020
    Location: The 13 Blessings
    Old 04-29-2021 , 02: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.

    __________________
           ╭覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧 ╮
             ██████     Now Playing: Vivaldi Four Seasons: Winter
             ██   ►   ██
             ██████     1:53 ▬▬▬▬◯▬▬▬▬▬▬▬▬▬▬
           ╰覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧 ╯

    Last edited by Elite Biker; 04-30-2021 at 03:35. Reason: Edited
    Elite Biker is offline
    mikaelangelis
    Senior Member
    Join Date: Oct 2017
    Old 04-29-2021 , 02: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
    Junior Member
    Join Date: Nov 2017
    Old 04-29-2021 , 05: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 16:32.
    pan0s is offline
    pan0s
    Junior Member
    Join Date: Nov 2017
    Old 04-29-2021 , 12: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 12:55.
    pan0s is offline
    mikaelangelis
    Senior Member
    Join Date: Oct 2017
    Old 04-29-2021 , 13: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 16:44.


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