AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Help / Support [HELP] Antidote, Infection bomb limit per round (https://forums.alliedmods.net/showthread.php?t=183289)

naSTR 04-20-2012 07:29

[HELP] Antidote, Infection bomb limit per round
 
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?

yokomo 04-20-2012 07:52

Re: [HELP] Antidote, Infection bomb limit per round
 
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


H.RED.ZONE 04-20-2012 10:07

Re: [HELP] Antidote, Infection bomb limit per round
 
I think he wants to set "[3/3]" Like that

SeniorRamos 04-20-2012 10:28

Re: [HELP] Antidote, Infection bomb limit per round
 
I don't think that could be done with a plugin, it has to be done by modifying the main zp 4.3 plugin

H.RED.ZONE 04-20-2012 10:40

Re: [HELP] Antidote, Infection bomb limit per round
 
It can be done by count o.O

naSTR 04-20-2012 11:00

Re: [HELP] Antidote, Infection bomb limit per round
 
Quote:

Originally Posted by yokomo (Post 1692857)
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 :3


Quote:

Originally Posted by H.RED.ZONE (Post 1692916)
I think he wants to set "[3/3]" Like that

Yes. Like in zp5.0


Quote:

Originally Posted by SeniorRamos (Post 1692931)
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


klatro 04-20-2012 12:33

Re: [HELP] Antidote, Infection bomb limit per round
 
For one player limit ?

yokomo 04-20-2012 12:35

Re: [HELP] Antidote, Infection bomb limit per round
 
Ehhe, then upgrade to ZP5.0 :) ZP4.3 is for hardcore only.

klatro 04-20-2012 12:49

Re: [HELP] Antidote, Infection bomb limit per round
 
Haha, I guess... zp5.0 is for Ladies? :)

H.RED.ZONE 04-20-2012 12:51

Re: [HELP] Antidote, Infection bomb limit per round
 
Yea maybe thats why mercylezz made it...
Or maybe not?


All times are GMT -4. The time now is 23:14.

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