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);
}