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

Zombie Plague Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
3yzdm
Junior Member
Join Date: May 2020
Old 05-08-2020 , 16:35   Zombie Plague Help
Reply With Quote #1

hi, how i can make more menus inside extra items like when ur human you open extra item and there it shows rare weapons, epic weapons etc, also when buying a extra item it will be shown down in text messages [Nickname] just bought a [Gun]
3yzdm is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-08-2020 , 17:55   Re: Zombie Plague Help
Reply With Quote #2

Hi, as far as adding menus in menus you have to edit the core of your ZP plugin, and on your text messages you can do this

Example:

Armor
PHP Code:
//Make sure to find " zp_extra_item_selected(player, itemid) "

public zp_extra_item_selected(playeritemid)
{
    if (
itemid == g_itemid_humanarmor)
    {
        
set_pev(playerpev_armorvaluefloat(min(pev(playerpev_armorvalue)+g_armor_amountg_armor_limit)))
        
engfunc(EngFunc_EmitSoundplayerCHAN_BODYg_sound_buyarmor1.0ATTN_NORM0PITCH_NORM)
    }


Edit

PHP Code:
public zp_extra_item_selected(playeritemid)
{
    if (
itemid == g_itemid_humanarmor)
    {
        
set_pev(playerpev_armorvaluefloat(min(pev(playerpev_armorvalue)+g_armor_amountg_armor_limit)))
        
engfunc(EngFunc_EmitSoundplayerCHAN_BODYg_sound_buyarmor1.0ATTN_NORM0PITCH_NORM)
        
        
      
client_print_color(playerprint_chat"^x04[ZP]^x01 You^x01 Bought^x03 Anti Infection Armor !!!")
     
               
//This is extra stuff i added if u want u can delete it , it shows the player who bought the anti infection armor 
                
new name[32]  
                
get_user_name(playername31)
                
set_hudmessage(20000, -1.000.8410.07.01.01.0, -1
                
show_hudmessage(0"%s Has Anti-Infection Armor"name)
    }


Last edited by elmedin; 05-08-2020 at 17:58. Reason: Fix
elmedin is offline
3yzdm
Junior Member
Join Date: May 2020
Old 05-09-2020 , 04:37   Re: Zombie Plague Help
Reply With Quote #3

can you make everything just text like when i buy goldenak it shows to other players down in text message not hud like you have made it, and if it possible can i add sounds on it, like when i buy goldenak it plays sound

Last edited by 3yzdm; 05-09-2020 at 04:38.
3yzdm is offline
3yzdm
Junior Member
Join Date: May 2020
Old 05-11-2020 , 23:35   Re: Zombie Plague Help
Reply With Quote #4

??
3yzdm is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-12-2020 , 00:08   Re: Zombie Plague Help
Reply With Quote #5

Quote:
Originally Posted by 3yzdm View Post
??
I have no idea if this will work, but try it



PHP Code:
                new name[32]  
                
get_user_name(playername31)
                
client_print_color(0print_chat"^x04[%s] ^x01 Bought^x03 Anti Infection Armor !!!"name
elmedin is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-12-2020 , 00:27   Re: Zombie Plague Help
Reply With Quote #6

Also, make sure to download this ---->>> https://forums.alliedmods.net/showthread.php?t=94960
elmedin is offline
3yzdm
Junior Member
Join Date: May 2020
Old 05-12-2020 , 00:32   Re: Zombie Plague Help
Reply With Quote #7

i will try this, what about extra menus in ZP extra items like I told before for example common weapons, rare, epic, in common i will put Plasmagun, in rare Goldenak etc
3yzdm is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-12-2020 , 00:34   Re: Zombie Plague Help
Reply With Quote #8

You have to create arrays for that my dude
elmedin is offline
elmedin
Senior Member
Join Date: Nov 2013
Location: Bruh
Old 05-12-2020 , 00:38   Re: Zombie Plague Help
Reply With Quote #9

Or, if u have no idea how to do that, i can give you an idea what i did 3 years ago, edit the vip system 1.7.2 i think, make 3 of them and edit each ZV to ZR and the other one ZV to ZC and the other one ZV to ZE

ZC means ZCommon
ZR means ZRare
ZE means ZEpic

and make it free access for anyone, this is the easiest way with less work to do it

Last edited by elmedin; 05-12-2020 at 00:50.
elmedin is offline
3yzdm
Junior Member
Join Date: May 2020
Old 05-12-2020 , 00:44   Re: Zombie Plague Help
Reply With Quote #10

the easy way to go, any idea making the weapon(item) from vip menu once i bought it with ammo packs i can get it for free nexttime but it will be expired nextmap so I need to buy it again to choose it free
3yzdm 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 09:03.


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