Nothing wrong with the code, you didn't give the player bpammo in the first place.
PHP Code:
public zp_extra_item_selected(player, itemid)
{
if ( itemid == g_itemid )
{
if ( user_has_weapon(player, CSW_AWP) )
{
drop_prim(player)
}
give_item(player, "weapon_awp")
client_print(player, print_chat, "[ZP] You bought Golden AWP")
g_Hasawp[player] = true;
}
}
you give them weapon only
Fix it to this
PHP Code:
public zp_extra_item_selected(player, itemid)
{
if ( itemid == g_itemid )
{
if ( user_has_weapon(player, CSW_AWP) )
{
drop_prim(player)
}
give_item(player, "weapon_awp")
cs_set_user_bpammo(player, CSW_AWP, 30) //Give them 30 BPAmmo
client_print(player, print_chat, "[ZP] You bought Golden AWP")
g_Hasawp[player] = true;
}
}
and it will give you 30 bpammo
__________________