Arkshine , please help .
I made a plugin and I want to added the amount but I need to buy it twice so I can get the amount that I want . Please help
PHP Code:
public zp_extra_item_selected(player, itemid)
{
if ( itemid == g_itemid )
{
if ( user_has_weapon(player, CSW_HEGRENADE) )
give_item(player, "weapon_hegrenade")
cs_set_user_bpammo(player, CSW_HEGRENADE, get_pcvar_num(cvar_amount))
client_print(player, print_chat, "[ZP] You bought Extra HE-Grenade")
g_Bomb[player] = true;
}