Raised This Month: $51 Target: $400
 12% 

Help / Support [HELP] Antidote, Infection bomb limit per round


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 04-20-2012 , 07:29   [HELP] Antidote, Infection bomb limit per round
Reply With Quote #1

Hi, i've tried to make this limit in zp4.3fix5a but not working. I want to make infection bomb round limit for per human not for team. Anyone can help?
__________________

Last edited by naSTR; 05-07-2012 at 04:42.
naSTR is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-20-2012 , 07:52   Re: [HELP] Antidote, Infection bomb limit per round
Reply With Quote #2

Look at config file and change the cvars.
Code:
// Extra Items
// -----------
zp_extra_items 1 // Enable extra items
zp_extra_weapons 1 // Include weapons
zp_extra_nvision 1 // Include night vision
zp_extra_antidote 1 // Include antidote
zp_extra_antidote_limit 1 // Antidote purchase limit per round
zp_extra_madness 1 // Include zombie madness
zp_extra_madness_limit 5 // Zombie madness purchase limit per round
zp_extra_madness_duration 5.0 // Zombie madness duration
zp_extra_infbomb 1 // Include infection bomb
zp_extra_infbomb_limit 1 // Infection bomb purchase limit per round
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 04-20-2012 , 10:07   Re: [HELP] Antidote, Infection bomb limit per round
Reply With Quote #3

I think he wants to set "[3/3]" Like that
__________________
H.RED.ZONE is offline
SeniorRamos
Senior Member
Join Date: Nov 2011
Location: Raccoon City
Old 04-20-2012 , 10:28   Re: [HELP] Antidote, Infection bomb limit per round
Reply With Quote #4

I don't think that could be done with a plugin, it has to be done by modifying the main zp 4.3 plugin
__________________
SeniorRamos is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 04-20-2012 , 10:40   Re: [HELP] Antidote, Infection bomb limit per round
Reply With Quote #5

It can be done by count o.O
__________________
H.RED.ZONE is offline
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 04-20-2012 , 11:00   Re: [HELP] Antidote, Infection bomb limit per round
Reply With Quote #6

Quote:
Originally Posted by yokomo View Post
Look at config file and change the cvars.
Code:
// Extra Items
// -----------
zp_extra_items 1 // Enable extra items
zp_extra_weapons 1 // Include weapons
zp_extra_nvision 1 // Include night vision
zp_extra_antidote 1 // Include antidote
zp_extra_antidote_limit 1 // Antidote purchase limit per round
zp_extra_madness 1 // Include zombie madness
zp_extra_madness_limit 5 // Zombie madness purchase limit per round
zp_extra_madness_duration 5.0 // Zombie madness duration
zp_extra_infbomb 1 // Include infection bomb
zp_extra_infbomb_limit 1 // Infection bomb purchase limit per round
Thats not the per human. Thats whole human can use limit


Quote:
Originally Posted by H.RED.ZONE View Post
I think he wants to set "[3/3]" Like that
Yes. Like in zp5.0


Quote:
Originally Posted by SeniorRamos View Post
I don't think that could be done with a plugin, it has to be done by modifying the main zp 4.3 plugin
Im trying to make edit the main plugin. But no good. Ive copied some codes from zp50_item_antidote and zp50_item_infection_bomb but not works.

Example ive copied theyse codes from zp50_item_infection_bomb

PHP Code:
new g_InfectionBombCountercvar_infection_bomb_round_limit

cvar_infection_bomb_round_limit 
register_cvar("zp_infection_bomb_round_limit""3")

static 
text[32]
formatex(textcharsmax(text), "[%d/%d]"g_InfectionBombCounter,get_pcvar_num(cvar_infection_bomb_round_limit))
zp_items_menu_text_add(text)

g_InfectionBombCounter 0
g_InfectionBombCounter
++

if (
g_InfectionBombCounter >= get_pcvar_num(cvar_infection_bomb_round_limit))
return 
ZP_ITEM_NOT_AVAILABLE
__________________

Last edited by naSTR; 04-20-2012 at 11:03.
naSTR is offline
klatro
Senior Member
Join Date: Oct 2009
Location: The world and at home
Old 04-20-2012 , 12:33   Re: [HELP] Antidote, Infection bomb limit per round
Reply With Quote #7

For one player limit ?
klatro is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-20-2012 , 12:35   Re: [HELP] Antidote, Infection bomb limit per round
Reply With Quote #8

Ehhe, then upgrade to ZP5.0 ZP4.3 is for hardcore only.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
klatro
Senior Member
Join Date: Oct 2009
Location: The world and at home
Old 04-20-2012 , 12:49   Re: [HELP] Antidote, Infection bomb limit per round
Reply With Quote #9

Haha, I guess... zp5.0 is for Ladies?
klatro is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 04-20-2012 , 12:51   Re: [HELP] Antidote, Infection bomb limit per round
Reply With Quote #10

Yea maybe thats why mercylezz made it...
Or maybe not?
__________________

Last edited by H.RED.ZONE; 04-20-2012 at 12:51.
H.RED.ZONE 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 06:04.


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