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

Subplugin Submission [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!


Post New Thread Reply   
 
Thread Tools Display Modes
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 06-02-2010 , 11:18   Re: [ZP] ZP_CS_Buymenu
Reply With Quote #31

Quote:
/home/groups/alliedmodders/forums/files/4/3/9/5/3/66909.attach(6) : fatal error 100: cannot read from file: "zombieplague"
Well, that's because online compilator doesn't have ZP. You have to compile locally. Be sured you have zombie_plague40.sma in your "scripting" folder. Also "zombieplague.inc" in "include" folder of your amxx studio.

Quote:
This plugin can use to buy extra item by Cs money , can't it ?
Ofcourse it can. Read 1st post, a "HOWTO" paragraph!)

Quote:
and yeah , by the way , in the past we could add our own 3rd custom party weapons to the Menu by adding the plugin name to the CFG , but is it still possible?
Yes, read 1st post...now you must add not plugin name, but extra item name itself.

...

Quote:
Hardcoded functions:
  • zp_cs_buy_<weapon name> - where <weapon_name> is one of following: http://wiki.amxmodx.org/CS_Weapons_Information - actually buys an item from the link above. Can work with undocumented items, but not recommended.
  • zp_cs_HEVsuit - sets player's armor to 100, if its below 90.
  • zp_cs_moarHEVsuit - gives player 100 additional armor, no restrictions.
  • zp_cs_nightvision - buys a nightvision via main ZP plugin, ammo packs ignored.
  • zp_cs_antidote - buys a t-virus antodote via main ZP plugin, ammo packs ignored.
  • zp_cs_zombie_madness - buys a zombie madness via main ZP plugin, ammo packs ignored.
  • If command is nothing of above, it considered as an extra item name and ZP_CS_Buymenu plugin will attemp to purchase this extra-item via main ZP plugin, using it's name to find it's ID - so be carefull, item name must be exactly same as in ZP main plugin extra items list - type exactly "Radar Scanner", neither "radar scanner" nor "RaradScanner" will work.
also, just in case, i'll also past 5th paragraph:
Quote:
5) Tired of zombs cowardly camping like chiсkenpussies all the round long?
Do you ever thought WHY they are doing this? Well, here is the answer:
a) they will ruin their stats because of dying.
b) when round ends, nothing happens anyway. so blaaah...let's just camp and wait till humans will come out of their hideout, right, my rotten fella?
But this plugin solves both of this problems!
When round ends, if it's a "Draw" roundend, zombie will get some frags/deaths penalty and humans will get some bonus frags! And, ofcourse, $$$
bonuses/penalties. And also by setting zp_cs_zombie_nodeathscore 1 you can disable death count for zombies when they are killed by humans! So there is no more reason to camp for zombs anymore: died? DON'T CARE!! But better care about round results...
It also boosts teamplay.
and cvars list
Quote:
General
  • zp_cs_income_cash_rate 2.0 - income cash rate for humans. Income cash = dmg * income cash rate.
  • zp_cs_moneymax 50000 - self explanatory.
  • zp_cs_money_killbonus 300 - kill bonus for humans/survivor.
  • zp_cs_infectmoneybonus 1500 - infect and kill bonus for zombies/nemesis.
  • zp_cs_survivor_canbuy 0 - enables/disables buymenu for survivor.
  • zp_cs_nemesis_canbuy 0 - enables/disables buymenu for nemesis.
  • zp_cs_nemesis_income_cash_rate 0.5 - affects nemesis kill bonus. Nemesis bonus for killing = zp_cs_infectmoneybonus * zp_cs_nemesis_income_cash_rate.
  • zp_cs_survivor_income_cash_rate 0.5 - affects survivor income cash rate and kill bonus. Income cash for survivor = dmg * zp_cs_survivor_income_cash_rate. Survivor bonus for killing = zp_cs_money_killbonus * zp_cs_nemesis_income_cash_rate.

End round bonuses/penalties
  • zp_cs_zombie_nodeathscore 1 - if 1 then when zombies dies, it doesn't receieve death score. So zombie can die without any worries about their stats. If 0 then everything like usual.
  • zp_cs_money_human_win 3500 - money bonus for humans, if round ended with all zombies being killed.
  • zp_cs_money_human_lose 1000 - money bonus for humans, if round ended with all humans being killed/infected by zombies.
  • zp_cs_money_human_draw 7000 - money bonus for humans, if round ended due round mp_roundtime timeout. So-called "Surviving" or "Draw" round end.
  • zp_cs_money_zombie_win 2500 - money bonus for zombies, if round ended with all humans being killed/infected by zombies.
  • zp_cs_money_zombie_lose 1500 - money bonus for zombies, if round ended with all zombies being killed.
  • zp_cs_money_zombie_draw -5000 - money bonus for zombies, if round ended due round mp_roundtime timeout. So-called "Surviving" or "Draw" round end.
  • zp_cs_drawround_killh 0 - Kill all humans on "Draw" round end. NOT IMPLEMENTED YET.
  • zp_cs_drawround_killz 1 - kill all zombies on "Draw" round end. NOT IMPLEMENTED YET.
  • zp_cs_drawround_frag_h 5 - bonus frags for humans on "Draw" round end.
  • zp_cs_drawround_frag_z -3 - bonus frags for zombies on "Draw" round end.
  • zp_cs_drawround_death_h 0 - death score penalty for humans on "Draw" round end.
  • zp_cs_drawround_death_z 5 - death score penalty for zombies on "Draw" round end.

Mutliples for item prices afrer buytime is over
  • zp_cs_buytime_pistol_mult 3 - do you really need any comments here?
  • zp_cs_buytime_shotgun_mult 3
  • zp_cs_buytime_smgun_mult 3
  • zp_cs_buytime_rifle_mult 3
  • zp_cs_buytime_biggun_mult 1
  • zp_cs_buytime_gren_mult 10
  • zp_cs_buytime_ammo_mult 10
P.S.
another update + tool to edit .cfg file coming soon.

P.P.S.
Hint: you can change buymenu item's name color like this:
Quote:
zp_cs_buymenu_equiph07_name "\yTrip Mine"
zp_cs_buymenu_equiph07_cost 6000
zp_cs_buymenu_equiph07_todo "Trip Mine"
__________________


Last edited by SonicSonedit; 06-02-2010 at 12:37.
SonicSonedit is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 06-02-2010 , 13:23   Re: [ZP] ZP_CS_Buymenu
Reply With Quote #32

i know this is not ZP , but can you take a look : http://forums.alliedmods.net/showthr...48#post1197748
SaM.ThE.MaN is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 06-02-2010 , 13:59   Re: [ZP] ZP_CS_Buymenu
Reply With Quote #33

Quote:
i know this is not ZP , but can you take a look : http://forums.alliedmods.net/showthr...48#post1197748
Please use PM for requests like these...
__________________

SonicSonedit is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 06-02-2010 , 14:16   Re: [ZP] ZP_CS_Buymenu
Reply With Quote #34

i want this menu to open up each round,
Like when server starts Primary weapons and secondary. Primary = guns , secondary = pistols thats it
SaM.ThE.MaN is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 06-02-2010 , 14:31   Re: [ZP] ZP_CS_Buymenu
Reply With Quote #35

Is that a problem to press "B" button in each round? Did you play original counter-strike?

P.S.
i can add a notice message like "Press B to buy item" at round start, if you want.
__________________

SonicSonedit is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 06-02-2010 , 18:57   Re: [ZP] ZP_CS_Buymenu
Reply With Quote #36

Update to 1.6!
Changelog:
Fixed 5 minor bugs.
Code optimization.
Balanced some things.
Added info message "press B to buy weapons and extra items" at roundstart.
Added lang file support. Check 1st post, put zp_cs_buymenu.txt in your cstrike\addons\amxmodx\data\lang\ folder. For now only english and russian are preset, but if you want, you can add your native language and i'll update file in 1st post!
__________________

SonicSonedit is offline
= Cyber =
Member
Join Date: Nov 2009
Location: Bekasi, West Java
Old 06-03-2010 , 06:27   Re: [ZP] ZP_CS_Buymenu
Reply With Quote #37

wow this is i looking until now...nice Sonic
= Cyber = is offline
Shalun
Member
Join Date: May 2009
Location: Russia
Old 06-22-2010 , 10:15   Re: [ZP] ZP_CS_Buymenu
Reply With Quote #38

//// zp_cs_buymenu.sma
// D:\scripting\zp_cs_buymenu.sma(85) : warning 200: symbol "cvar_zp_cs_nemesis_
income_cash_" is truncated to 31 characters
// D:\scripting\zp_cs_buymenu.sma(86) : warning 200: symbol "cvar_zp_cs_survivor
_income_cash" is truncated to 31 characters
// D:\scripting\zp_cs_buymenu.sma(190 -- 191) : warning 213: tag mismatch
// D:\scripting\zp_cs_buymenu.sma(194 -- 195) : warning 213: tag mismatch
// D:\scripting\zp_cs_buymenu.sma(196 -- 197) : warning 200: symbol "cvar_zp_cs_
nemesis_income_cash_" is truncated to 31 characters
// D:\scripting\zp_cs_buymenu.sma(197 -- 19 : warning 200: symbol "cvar_zp_cs_
survivor_income_cash" is truncated to 31 characters
// D:\scripting\zp_cs_buymenu.sma(197 -- 19 : warning 213: tag mismatch
// D:\scripting\zp_cs_buymenu.sma(198 -- 199) : warning 213: tag mismatch
// D:\scripting\zp_cs_buymenu.sma(275) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(31 : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(361) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(404) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(447) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(490) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(533) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(542) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(551) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(562) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(570) : warning 213: tag mismatch
// D:\scripting\zp_cs_buymenu.sma(581) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(64 : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(657) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(671) : warning 213: tag mismatch
// D:\scripting\zp_cs_buymenu.sma(672) : warning 200: symbol "cvar_zp_cs_nemesis
_income_cash_" is truncated to 31 characters
// D:\scripting\zp_cs_buymenu.sma(672) : warning 213: tag mismatch
// D:\scripting\zp_cs_buymenu.sma(673) : warning 200: symbol "cvar_zp_cs_survivo
r_income_cash" is truncated to 31 characters
// D:\scripting\zp_cs_buymenu.sma(673) : warning 213: tag mismatch
// D:\scripting\zp_cs_buymenu.sma(692) : warning 213: tag mismatch
// D:\scripting\zp_cs_buymenu.sma(694) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(72 : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(899) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(979) : warning 205: redundant code: constant e
xpression is zero
// D:\scripting\zp_cs_buymenu.sma(1343) : warning 209: function "ham_TakeDamage"
should return a value
// D:\scripting\zp_cs_buymenu.sma(1347) : warning 205: redundant code: constant
expression is zero
// D:\scripting\zp_cs_buymenu.sma(1373) : warning 205: redundant code: constant
expression is zero
// D:\scripting\zp_cs_buymenu.sma(1392) : warning 205: redundant code: constant
expression is zero
// D:\scripting\zp_cs_buymenu.sma(1472) : warning 204: symbol is assigned a valu
e that is never used: "cvar_zp_cs_drawround_killh"
// D:\scripting\zp_cs_buymenu.sma(1472) : warning 204: symbol is assigned a valu
e that is never used: "cvar_zp_cs_drawround_killz"
// Header size: 2400 bytes
// Code size: 47664 bytes
// Data size: 34264 bytes
// Stack/heap size: 16384 bytes; max. usage is unknown, due to recursion
// Total requirements: 100712 bytes
//
// 38 Warnings.
// Done.
//
// Compilation Time: 0,92 sec
// ----------------------------------------

Press enter to exit ...


????????????????????????????
__________________
Shalun is offline
vaan123
Veteran Member
Join Date: Sep 2009
Location: Kuwait
Old 07-24-2010 , 11:28   Re: [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!
Reply With Quote #39

nice! I've been waiting for an update +respect.
__________________

vaan123 is offline
Send a message via MSN to vaan123 Send a message via Yahoo to vaan123 Send a message via Skype™ to vaan123
bluechester
AlliedModders Donor
Join Date: Nov 2008
Old 07-24-2010 , 11:59   Re: [ZP] Addon: Counter-Strike like Buymenu for Zombie Plagie!
Reply With Quote #40

GOOD JOB!

Can you make it so that certain categories like rifles or shotguns only available for admin access?
bluechester 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:20.


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