AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013) (https://forums.alliedmods.net/showthread.php?t=221935)

Kia 07-28-2013 05:44

Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
 
2 Attachment(s)


http://www.x14pwnz.tk/DeathrunShop.png

.: Description :.

This is just another Shop for Deathrun, but it has some of the exceptionally stuff. ;)
It has a shop where you can buy other knife models and preview them before you buy them, so you don't buy anything you don't want.
It also has Schwabba's Deathrun FrostNades.
It's also compatible to my Deathrun Lifes Plugin.

.: Requirements :.
  • A Steam Server
  • (Optional) SQL Database

.: Defines :.

PHP Code:

// Uncomment to use Deathrun Lifes @ https://forums.alliedmods.net/showthread.php?t=221855
//#define USE_LIVES

// Uncomment to use SQL instead of Vault
//#define USE_SQL

#define PREFIX "[Kia's Deathrun Shop]" 

.: Commands :.
  • say /shop - Opens the Shop.
  • say /points - Shows you a colored message with the current amount of points you have.

.: CVars :.
  • shop_ct_knifekill (Default : 4) - Amount of points a CT gets when he kills a Terrrorist with a knife.
  • shop_ct_knifehs (Default : 4) - Amount of additional points a CT gets when he kills a Terrorist with a Knifeheadshot.
  • shop_ct_weaponkill (Default : 2) - Amount of points a CT gets when he kills a Terrorist with a weapon.
  • shop_ct_weaponhs (Default : 2) - Amount of additional points a CT gets when he kills a Terrorist with a Weaponheadshot.
  • shop_t_knifekill (Default : 2) - Amount of points a T gets when he kills a CT with a knife.
  • shop_t_knifehs (Default : 2) - Amount of additional points a T gets when he kills a CT with a Knifeheadshot.
  • shop_t_weaponkill (Default : 1) - Amount of points a T gets when he kills a CT with a weapon.
  • shop_t_weaponhs (Default : 1) - Amount of additional points a T gets when he kills a CT with a Weaponheadshot.
  • shop_cost_model (Default : 1000) - Cost for buying a model.
  • shop_cost_he (Default : 5) - Cost for buying a HE.
  • shop_cost_nades (Default : 10) - Cost for buying a HE and a Flashbang.
  • shop_cost_frost (Default : 15) - Cost for buying a Frostnade.
  • shop_cost_hp (Default : 10) - Cost for buying HP.
  • shop_cost_ap (Default : 5) - Cost for buying AP.
  • shop_cost_para (Default : 10) - Cost for buying a parachute.
  • shop_cost_life1 (Default : 20) - Cost for buying one extra life.
  • shop_cost_life10 (Default : 150) - Cost for buying ten extra lifes.
  • shop_cost_life50 (Default : 500) - Cost for buying 50 extra lifes.
  • shop_cost_life100 (Default : 800) - Cost for buying 100 extra lifes.
  • shop_cost_foot (Default : 1) - Cost for buying No Footsteps.
  • shop_cost_speed (Default : 20) - Cost for buying Speedboost.
  • shop_cost_grav (Default : 20) - Cost for buying Low Gravity.
  • shop_amount_hp (Default : 255) - Amount of HP you get when you buy HP.
  • shop_amount_ap (Default : 400) - Amount of AP you get when you buy AP.
  • shop_amount_grav (Default : 0.65) - Gravity Factor after buying Low Gravity.
  • shop_amount_speed (Default : 420.0) - Speed in Units you have after buying Speedboost.

.: Credits :.
  • Schwabba : Frostnades, Original Shop Design
  • KRoTaL : Parachute

.: To-Do :.
  • Reading Models from file.
  • You have ideas? Post them here or write me a PM.

.: Add Models to Shop :.
  1. At top of Plugin
    http://x14pwnz.tk/AddToEnum.PNG
  2. At func_ChooseModel_handler(id, menu, item)
    http://x14pwnz.tk/AddToHandler.PNG
  3. At func_CurWeapon(id)
    http://x14pwnz.tk/AddToCurWeapon.PNG

You can add special powers like more damage etc. if you want, just check CurWeapon code.


sami_spt 07-28-2013 12:05

Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
 
Great Plugin!

the only problem is adding these models made me crazy!
I'm Lazy to edit everything!


maybe something easier, like a .cfg file that can be edited for models of the knifes.

Kia 07-28-2013 12:10

Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
 
Read To-Do list.

sami_spt 07-28-2013 12:20

Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
 
ohh. didnt see it :)

anyways, keep up the good work!


EDIT: Add ML to the to-do list!

Kia 07-28-2013 12:21

Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
 
Will do it, thanks. I think about changing the shop to an API and using Sub-plugins for shop items, but I'm not sure if its worth.

ML will be added.

BeSt2013 07-29-2013 10:01

Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
 
L 07/29/2013 - 15:56:20: Invalid CVAR pointer
L 07/29/2013 - 15:56:20: [AMXX] Displaying debug trace (plugin "deathrun_shop.amxx", version "1.0.0")
L 07/29/2013 - 15:56:20: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 07/29/2013 - 15:56:20: [AMXX] [0] textv6IVT1.sma::func_CmdShop (line 291)
L 07/29/2013 - 15:57:06: Invalid player id 0
L 07/29/2013 - 15:57:06: [AMXX] Displaying debug trace (plugin "deathrun_shop.amxx", version "1.0.0")
L 07/29/2013 - 15:57:06: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 07/29/2013 - 15:57:06: [AMXX] [0] textv6IVT1.sma::func_EventDeathMsg (line 534)


L 07/29/2013 - 15:51:01: Start of error session.
L 07/29/2013 - 15:51:01: Info (map "deathrun_astro_e") (file "addons/amxmodx/logs/error_20130729.log")
L 07/29/2013 - 15:51:01: Invalid CVAR pointer
L 07/29/2013 - 15:51:01: [AMXX] Displaying debug trace (plugin "deathrun_shop.amxx", version "1.0.0")
L 07/29/2013 - 15:51:01: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 07/29/2013 - 15:51:01: [AMXX] [0] textv6IVT1.sma::func_CmdShop (line 291)
L 07/29/2013 - 15:51:02: Invalid CVAR pointer
L 07/29/2013 - 15:51:02: [AMXX] Displaying debug trace (plugin "deathrun_shop.amxx", version "1.0.0")
L 07/29/2013 - 15:51:02: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 07/29/2013 - 15:51:02: [AMXX] [0] textv6IVT1.sma::func_CmdShop (line 291)
L 07/29/2013 - 15:52:48: Invalid player id 0
L 07/29/2013 - 15:52:48: [AMXX] Displaying debug trace (plugin "deathrun_shop.amxx", version "1.0.0")
L 07/29/2013 - 15:52:48: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 07/29/2013 - 15:52:48: [AMXX] [0] textv6IVT1.sma::func_EventDeathMsg (line 534)
L 07/29/2013 - 15:53:05: Invalid player id 0
L 07/29/2013 - 15:53:05: [AMXX] Displaying debug trace (plugin "deathrun_shop.amxx", version "1.0.0")
L 07/29/2013 - 15:53:05: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 07/29/2013 - 15:53:05: [AMXX] [0] textv6IVT1.sma::func_EventDeathMsg (line 534)
L 07/29/2013 - 15:53:49: Invalid player id 0
L 07/29/2013 - 15:53:49: [AMXX] Displaying debug trace (plugin "deathrun_shop.amxx", version "1.0.0")
L 07/29/2013 - 15:53:49: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 07/29/2013 - 15:53:49: [AMXX] [0] textv6IVT1.sma::func_EventDeathMsg (line 534)
L 07/29/2013 - 15:55:01: Invalid player id 0
L 07/29/2013 - 15:55:01: [AMXX] Displaying debug trace (plugin "deathrun_shop.amxx", version "1.0.0")
L 07/29/2013 - 15:55:01: [AMXX] Run time error 10: native error (native "get_user_weapon")
L 07/29/2013 - 15:55:01: [AMXX] [0] textv6IVT1.sma::func_EventDeathMsg (line 534)

Kia 07-29-2013 11:03

Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
 
Hmm, strange, I didn't have these errors, please post the output of :

rcon version
rcon amxx modules
rcon amxx plugins

@.SizNeR 07-30-2013 09:49

Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
 
Thanks, good job, nice plugin. :up:

Mauricio Frb 07-30-2013 10:51

Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
 
Just a suggestion, add ML Support.

Kia 03-19-2014 07:25

Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
 
Please report future bugs and suggestions via mail to : [email protected]

Since I get many messages from different ways I decided to set up this mail account so everything gets to one place.


All times are GMT -4. The time now is 10:33.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.