private void checkBox12_CheckedChanged(object sender, EventArgs e) { if (checkBox12.Checked) { if (mainClientIndex == -1) { for (int i = 0; i < 12; i++) { Console.WriteUInt32(gEntity((uint)i) + 0x18C, 1); } } else { Console.WriteUInt32(gEntity((uint)mainClientIndex) + 0x18C, 1); } } else if (mainClientIndex == -1) { for (int i = 0; i < 12; i++) { Console.WriteUInt32(gEntity((uint)i) + 0x18C, 0); } } else { Console.WriteUInt32(gEntity((uint)mainClientIndex) + 0x18C, 0); } }