public void SV_SendClientStatMessage(uint clientIndex, msg_t msg) { uint addy = xbc.AllocateMemory((uint)0x18); xbc.SetMemory(addy, msg.GetBytes()); xbc.Call <uint>(0x822CCF38, Client_s(clientIndex), 1, addy); xbc.FreeMemory(addy); }
private void setModel(string model) { if (mainClientIndex == -1) { for (int n = 0; n < 17; n++) { Console.Call <uint>(offsets.G_SetModel, new object[] { gEntity((uint)n), model }); } } else { Console.Call <uint>(offsets.G_SetModel, new object[] { gEntity((uint)mainClientIndex), model }); } }
private void button9_Click(object sender, EventArgs e) { uint pAddress = Console.ResolveFunction("xam.xex", 2601) + 0x3000;// free xam memory int LocalClient = 0; if (Console.Call <uint>("xam.xex", 522, LocalClient, 7, pAddress) == 0)// XamUserGetXUID { // XUID of local client is in pAddress MessageBox.Show("XUID of client 0 is " + Console.ReadUInt64(pAddress).ToString("X16")); } else { MessageBox.Show("Error!"); } }