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

Adding custom weapons in zp buymenu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dinogust
Member
Join Date: Jun 2009
Old 12-01-2021 , 04:56   Adding custom weapons in zp buymenu
Reply With Quote #1

Hello, is adding more weapon in the buymenu at the start is possible in zp 5.0? What should i put in zombieplague.ini? or do i have to edit the buymenu50.sma as well?

Mostly i just want to add more variety with simple model swap/damage/rof/recoil modifier and expand the weapon choice past the default 14 options. I saw the line in the .ini file with
HTML Code:
PRIMARY = weapon_galil , weapon_famas , weapon_m4a1 , weapon_ak47...
so im thinking if it's possible to have more variety, as in more weapon_xxx or weapon_yyy or to add from an extra item plugin. Thanks.
dinogust is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 12-22-2021 , 06:02   Re: Adding custom weapons in zp buymenu
Reply With Quote #2

https://forums.alliedmods.net/showpo...2&postcount=14
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 12-25-2021 , 03:45   Re: Adding custom weapons in zp buymenu
Reply With Quote #3

Take an example from this plugin
PHP Code:
if( equalszKey"CREATE_WEAPONS" ) )
                    {
                        while( 
szValue] != && strtokszValueszKeycharsmaxszKey ), szValuecharsmaxszValue ), ',' ) )
                        {
                            
trimszKey ); trimszValue );
                            
remove_quotesszKey ); remove_quotesszValue );
                            
                            
ArrayPushStringg_aWeaponsszKey )
                        }
                    }
                    else if( 
equalszKey"CREATE_PISTOLS" ) )
                    {
                        while( 
szValue] != && strtokszValueszKeycharsmaxszKey ), szValuecharsmaxszValue ), ',' ) )
                        {
                            
trimszKey ); trimszValue );
                            
remove_quotesszKey ); remove_quotesszValue );
                            
                            
ArrayPushStringg_aPistolsszKey )
                        }
                    } 
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache 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 16:28.


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