private void checkBox14_CheckedChanged(object sender, EventArgs e) { if (checkBox14.Checked) { if (mainClientIndex != -1) { int test = Console.ReadInt32(getPlayerState((uint)mainClientIndex) + 0xC); test >>= 16; Console.WriteInt32(getPlayerState((uint)mainClientIndex) + 0xC, (test | 0x01)); } else { for (int i = 0; i < 12; i++) { int test = Console.ReadInt32(getPlayerState((uint)i) + 0xC); test >>= 16; Console.WriteInt32(getPlayerState((uint)i) + 0xC, (test | 0x01)); } } } else { if (mainClientIndex != -1) { int test = Console.ReadInt32(getPlayerState((uint)mainClientIndex) + 0xC); test <<= 16; Console.WriteInt32(getPlayerState((uint)mainClientIndex) + 0xC, (test | 0x01)); } else { for (int i = 0; i < 12; i++) { int test = Console.ReadInt32(getPlayerState((uint)i) + 0xC); test <<= 16; Console.WriteInt32(getPlayerState((uint)i) + 0xC, (test | 0x01)); } } } }