Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-28-2013 , 05:44   Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
Reply With Quote #1





.: 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
  2. At func_ChooseModel_handler(id, menu, item)
  3. At func_CurWeapon(id)

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

Attached Files
File Type: sma Get Plugin or Get Source (deathrun_shop.sma - 1106 views - 31.5 KB)
File Type: zip kiasdrunshop_files.zip (872.2 KB, 296 views)
__________________

Last edited by Kia; 07-28-2013 at 06:00.
Kia is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 07-28-2013 , 12:05   Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
Reply With Quote #2

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.

Last edited by sami_spt; 07-28-2013 at 12:05.
sami_spt is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-28-2013 , 12:10   Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
Reply With Quote #3

Read To-Do list.
__________________
Kia is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 07-28-2013 , 12:20   Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
Reply With Quote #4

ohh. didnt see it

anyways, keep up the good work!


EDIT: Add ML to the to-do list!

Last edited by sami_spt; 07-28-2013 at 12:21.
sami_spt is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-28-2013 , 12:21   Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
Reply With Quote #5

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.
__________________

Last edited by Kia; 07-28-2013 at 13:08.
Kia is offline
BeSt2013
Senior Member
Join Date: Mar 2013
Location: Egypt
Old 07-29-2013 , 10:01   Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
Reply With Quote #6

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)
BeSt2013 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-29-2013 , 11:03   Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
Reply With Quote #7

Hmm, strange, I didn't have these errors, please post the output of :

rcon version
rcon amxx modules
rcon amxx plugins
__________________
Kia is offline
@.SizNeR
Member
Join Date: Jun 2013
Old 07-30-2013 , 09:49   Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
Reply With Quote #8

Thanks, good job, nice plugin.
@.SizNeR is offline
Mauricio Frb
Member
Join Date: Jul 2013
Old 07-30-2013 , 10:51   Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
Reply With Quote #9

Just a suggestion, add ML Support.
Mauricio Frb is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 03-19-2014 , 07:25   Re: Kia's Deathrun Shop (Yet another Shop) (1.0.0 - 28.07.2013)
Reply With Quote #10

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.
__________________
Kia is offline
Reply



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 18:48.


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