AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Zombie Plague Help (https://forums.alliedmods.net/showthread.php?t=324187)

3yzdm 05-08-2020 16:35

Zombie Plague Help
 
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]

elmedin 05-08-2020 17:55

Re: Zombie Plague Help
 
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)
    }



3yzdm 05-09-2020 04:37

Re: Zombie Plague Help
 
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

3yzdm 05-11-2020 23:35

Re: Zombie Plague Help
 
??

elmedin 05-12-2020 00:08

Re: Zombie Plague Help
 
Quote:

Originally Posted by 3yzdm (Post 2699620)
??

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 05-12-2020 00:27

Re: Zombie Plague Help
 
Also, make sure to download this ---->>> https://forums.alliedmods.net/showthread.php?t=94960

3yzdm 05-12-2020 00:32

Re: Zombie Plague Help
 
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

elmedin 05-12-2020 00:34

Re: Zombie Plague Help
 
You have to create arrays for that my dude

elmedin 05-12-2020 00:38

Re: Zombie Plague Help
 
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

3yzdm 05-12-2020 00:44

Re: Zombie Plague Help
 
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


All times are GMT -4. The time now is 17:11.

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