Raised This Month: $ Target: $400
 0% 

Zombie Plague Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 17:11.


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