I fixed the code , but when the player reloads the
bpammo changes to 30 and the
ammo changes to 10 , how to fix ?
PHP Code:
public zp_extra_item_selected(player, itemid)
{
if(itemid == g_item_id)
{
if(get_user_weapon(player) == CSW_AWP)
{
drop_prim(player);
}
g_has_anti[player] = true;
client_print(player, print_chat, "[ZP] Voce comprou a Antidote AWP.");
new weaponid = give_item(player, "weapon_awp");
cs_set_weapon_ammo(weaponid, 1);
cs_set_user_bpammo(player, CSW_AWP, 5);
}
}