*Fixed bug with 0 BP ammo
I think alejandro (MAY) removed the required line for that on propose here is the solution to the code.
Code:
public zp_extra_item_selected(player, itemid)
{
if ( itemid == g_itemid )
{
if ( user_has_weapon(player, CSW_AK47) )
{
drop_prim(player)
}
give_item(player, "weapon_ak47")
cs_set_user_bpammo(player, CSW_AK47, 90)
client_print(player, print_chat, "[ZP] You bought Golden AK-47")
g_Hasawp[player] = true;
}
}