Is this correct way to check does user got FAMAS ?
PHP Code:
new weapon = get_user_weapon(id, _, _);
if(weapon != CSW_FAMAS)
{
dropPrimaryWeapons(id)
give_item(id, "weapon_famas")
}
cs_set_user_bpammo(id, CSW_FAMAS, 90)
If user got FAMAS, backpack ammo refills, if user does not have FAMAS, it drops current primary weapon and gives him FAMAS, and also refills ammo. Is it correct ?