public void ResetAmmo() { if (oldschool) { used_grenade = true; for (int i = 0; i < mammo.Length; i++) { if (i < 2) { mammo[i] = max_ammo[i]; cammo[i] = clip_ammo[i]; } else { mammo[i] = 0; cammo[i] = 0; } } FastChangeWeapon(1); gui_ammo.ChangeValue2(cammo[weaponid], clip_ammo[weaponid]); } else { for (int i = 0; i < mammo.Length; i++) { mammo[i] = max_ammo[i]; cammo[i] = clip_ammo[i]; } used_grenade = false; gui_ammo.ChangeValue2(cammo[weaponid], clip_ammo[weaponid]); gui_cammo.text = cammo[weaponid].ToString("00"); gui_mammo.text = mammo[weaponid].ToString("000"); } }