Thread: [Subplugin Submission] [ZP] Extra Item: Balrog Ethereal
View Single Post
Mark.uG
AlliedModders Donor
Join Date: Oct 2014
Old 03-05-2016 , 21:47   Re: [ZP] Extra Item: Balrog Ethereal FIXED
Reply With Quote #21

In case someone has issues with zp50 version heres the edit.

Code:
new g_clipammo[33], g_has_balrog[33], g_itemid, g_hamczbots, g_laserbeam_spr g_event_balrog, g_primaryattack, cvar_balrog_damage_x, cvar_balrog_bpammo, cvar_balrog_shotspd, cvar_balrog_oneround, cvar_balrog_clip, cvar_botquota;
to

Code:
new g_clipammo[33], g_has_balrog[33], g_itemid, g_hamczbots, g_laserbeam_spr, g_event_balrog, g_primaryattack, cvar_balrog_damage_x, cvar_balrog_bpammo, cvar_balrog_shotspd, cvar_balrog_oneround, cvar_balrog_clip, cvar_botquota;
Reupload to take out bug <If bought it would give you 2 Balrog and drop one one the ground!>

This
Code:
public zp_extra_item_selected(player, itemid)
{
    if (itemid == g_itemid)
    {
        client_print(player, print_chat, "[ZP] You bought %s.", ITEM_NAME);
        command_give_balrog(player);
    }
}

public zp_fw_items_select_pre(id, itemid)
{
    if(itemid != g_itemid) return ZP_ITEM_AVAILABLE;
    
    if(zp_core_is_zombie(id)) return ZP_ITEM_DONT_SHOW;
    
    if(g_has_balrog[id])
    {
        zp_items_menu_text_add("\r[Buyed]")
        return ZP_ITEM_NOT_AVAILABLE;
    }
    return ZP_ITEM_AVAILABLE;
}

public zp_fw_items_select_post(player, itemid)
{
    if(itemid != g_itemid)
        return;
    
    command_give_balrog(player);
}
To this
Code:
public zp_extra_item_selected(player, itemid)
{
    if(itemid != g_itemid)
        return;
    
    command_give_balrog(player);
}
Attached Files
File Type: sma Get Plugin or Get Source (zp50_extra_balrog_ethereal.sma - 591 views - 12.0 KB)

Last edited by Mark.uG; 03-05-2016 at 22:05. Reason: Forgot the code
Mark.uG is offline