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

Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
koyumu
Senior Member
Join Date: Jul 2008
Old 11-07-2008 , 13:57   Problem
Reply With Quote #1

[IMG]http://img389.**************/img389/8017/zmcrazyjumpksm0000vh3.png[/IMG]


Hi Mercyclezz

"
// Extra Items
// -----------
zp_extra_items 1 // Enable extra items
zp_extra_weapons 0 // Show weapons
zp_extra_nvision 0 // Show night vision
zp_extra_antidote 1 // Show antidote
zp_extra_madness 1 // Show zombie madness
zp_extra_infbomb 1 // Show infection bomb"

When i disable weapons, nvison ..
Item stays in the menu, how to remove item of the menu
(they are disabled)

Thanks You
__________________
[IMG]http://img80.**************/img80/4594/neyawndragon.gif[/IMG]





koyumu is offline
koyumu
Senior Member
Join Date: Jul 2008
Old 11-09-2008 , 06:33   Re: Problem
Reply With Quote #2

up
__________________
[IMG]http://img80.**************/img80/4594/neyawndragon.gif[/IMG]





koyumu is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 11-09-2008 , 07:24   Re: Problem
Reply With Quote #3

the items are coded into the menu, the cvars just make it so you can't choose the item, to disable try to find and comment this
Code:
	native_register_extra_item2("nvision", g_extra_costs2[0], ZP_TEAM_HUMAN)
and also find this
Code:
// Hard coded extra items
enum
{
	EXTRA_NVISION = 0,
	EXTRA_ANTIDOTE,
	EXTRA_MADNESS,
	EXTRA_INFBOMB
}
and change that 0 to -1. as for the weapons find
Code:
new const g_extra_names[][] = { "Napalm Nade", "Frost Nade", "Flare", "AWP Magnum Sniper", "M249 Para Machinegun", "SG550 Auto-Sniper", "G3SG1 Auto-Sniper" }
new const g_extra_items[][] = { "weapon_hegrenade", "weapon_flashbang", "weapon_smokegrenade", "weapon_awp", "weapon_m249", "weapon_sg550", "weapon_g3sg1" }
new const g_extra_costs[] = { 6, 6, 6, 8, 10, 12, 12 }
and change to
Code:
new const g_extra_names[][] = {  }
new const g_extra_items[][] = {  }
new const g_extra_costs[] = { }
that may/may not be enough to disable the way you want.

edit: also find this
Code:
#define EXTRAS_CUSTOM_STARTID (4+sizeof g_extra_names)
and change that 4 to 3 and also find
Code:
case 4 .. EXTRAS_CUSTOM_STARTID-1: // Weapons
and change that 4 to 3 as well(p.s. thats found in the buy_extra_item function)
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
koyumu
Senior Member
Join Date: Jul 2008
Old 11-09-2008 , 07:47   Re: Problem
Reply With Quote #4

thanks you G-Dog <3

i will edit the .sma

thanks
__________________
[IMG]http://img80.**************/img80/4594/neyawndragon.gif[/IMG]





koyumu 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 10:38.


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