public override void onInventory(ShapeBase obj, int amount) { GameConnection client = obj["client"]; if (client.isObject()) { client.setAmmoAmountHud(1, amount); } //todo Something funny here, probally should look at it. if (amount == 0) { obj.cycleWeapon("prev"); } }