GiveBetterWeapon(const id, const iLevel)
{
if(iLevel <= g_iMaxLevels && CheckFlag(IsPlayerAlive, id))
{
DeleteStatusIcon(id, iLevel);
SendStatusIcon(id, iLevel);
rg_remove_item(id, g_szWeaponLevelName[iLevel-1]); //
rg_give_item(id, g_szWeaponLevelName[iLevel], GT_APPEND);
// add he, smoke
rg_give_item(id, "weapon_hegrenade", GT_APPEND); // added
rg_give_item(id, "weapon_smokegrenade", GT_APPEND); // added
if(iLevel != g_iHeLevel && iLevel != g_iKnifeLevel)
{
cs_set_user_bpammo(id, g_iCswLevel[iLevel], g_iMaxBpAmmoLevel[iLevel]);
rg_give_item(id, "weapon_hegrenade", GT_APPEND); // added
rg_give_item(id, "weapon_smokegrenade", GT_APPEND); // added
ExecuteHamB(Ham_Weapon_RetireWeapon, get_member(id, m_rgpPlayerItems, 3));
}
}
}