)
!
)
using PC_Memory_Editor___Trainer_Library;
MW2TopTenWORLDMemEditor MemEditor = new MW2TopTenWORLDMemEditor();
dataGridView1.RowCount = 18;
<- change 18 with how many players there are (max players) in the game you are modding...
for (int i = 0; i < 18; i++)
{
dataGridView1.Rows[i].Cells[0].Value = i;
}
GetNames();
GetGOD();

public void GetNames()
{
}
public void GetGOD()
{
}
long client0Name = 0x01AA1A2C; <- defining the client 0 name offset (if on PS3 change to uint)
for (int i = 0; i < 18; i++)
{
long allClientsOffset = client0Name + (0x6CD8 * i); <- adding the interval (defined on the offsets list)
MemEditor.ReadString("iw4mp", allClientsOffset, 15); <- PC Mem Editor Lib Read String func
string Name = File.ReadAllText(@"tmp.txt"); <- Getting the readed memory
File.Delete(@"tmp.txt");<- Deleting the readed memory
dataGridView1.Rows[i].Cells[1].Value = Name; <- Writing the readed memory onto the grid
}
System.Threading.Thread.Sleep(100); <- Telling the program to pause for 100 milisseconds (to prevent crashing
!
long client0Health = 0x018DC174; <- defining client 0 health offset
for (int i = 0; i < 18; i++)
{
long allClientsOffset = client0Health + (0x4E8 * i); <- adding the interval (defined on offsets list)
MemEditor.ReadByte("iw4mp", allClientsOffset, 4); <- reading 4 bytes for each client (00 00 00 00)
string Status = File.ReadAllText(@"tmp.txt"); <- getting the readed memory
File.Delete(@"tmp.txt"); <- deleting the readed memory
if (Status.Contains("64000000")) <- checking if health is 100 (0x64)
{
dataGridView1.Rows[i].Cells[2].Value = "false";
}
else
{
if (Status.Contains("00000000")) <- checking if health is null (player not in game)
{
dataGridView1.Rows[i].Cells[2].Value = "false";
}
else <- else.. (than 100 and null = god)
{
dataGridView1.Rows[i].Cells[2].Value = "true";
}
}
}
System.Threading.Thread.Sleep(100); <- pausing the program for 100 milisseconds


private void giveToolStripMenuItem_Click(object sender, EventArgs e)
{
int currentIndex = dataGridView1.CurrentRow.Index; <- obtaining current grid index
long GodOffset = 0x018DC174; <- client 0 offset
long SelectedClientOffset = GodOffset + (0x4E8 * currentIndex); <- calculating selected client offset
MemEditor.WriteInt("iw4mp", SelectedClientOffset, -1); <- writing god (on PS3 would be 0xFF , 0xFF)
GetGOD(); <- Refreshing GOD Status
}
private void removeToolStripMenuItem_Click(object sender, EventArgs e)
{
int currentIndex = dataGridView1.CurrentRow.Index; <- obtaining current grid index
long GodOffset = 0x018DC174; <- client 0 offset
long SelectedClientOffset = GodOffset + (0x4E8 * currentIndex); <- calculating selected client offset
MemEditor.WriteInt("iw4mp", SelectedClientOffset, 100); <- removing god (on PS3 would be 0x64 , 0x00 or 0x00 , 0x64)
GetGOD(); <- Refreshing GOD Status
}
)
!
)
using PC_Memory_Editor___Trainer_Library;
MW2TopTenWORLDMemEditor MemEditor = new MW2TopTenWORLDMemEditor();
dataGridView1.RowCount = 18;
<- change 18 with how many players there are (max players) in the game you are modding...
for (int i = 0; i < 18; i++)
{
dataGridView1.Rows[i].Cells[0].Value = i;
}
GetNames();
GetGOD();

public void GetNames()
{
}
public void GetGOD()
{
}
long client0Name = 0x01AA1A2C; <- defining the client 0 name offset (if on PS3 change to uint)
for (int i = 0; i < 18; i++)
{
long allClientsOffset = client0Name + (0x6CD8 * i); <- adding the interval (defined on the offsets list)
MemEditor.ReadString("iw4mp", allClientsOffset, 15); <- PC Mem Editor Lib Read String func
string Name = File.ReadAllText(@"tmp.txt"); <- Getting the readed memory
File.Delete(@"tmp.txt");<- Deleting the readed memory
dataGridView1.Rows[i].Cells[1].Value = Name; <- Writing the readed memory onto the grid
}
System.Threading.Thread.Sleep(100); <- Telling the program to pause for 100 milisseconds (to prevent crashing
!
long client0Health = 0x018DC174; <- defining client 0 health offset
for (int i = 0; i < 18; i++)
{
long allClientsOffset = client0Health + (0x4E8 * i); <- adding the interval (defined on offsets list)
MemEditor.ReadByte("iw4mp", allClientsOffset, 4); <- reading 4 bytes for each client (00 00 00 00)
string Status = File.ReadAllText(@"tmp.txt"); <- getting the readed memory
File.Delete(@"tmp.txt"); <- deleting the readed memory
if (Status.Contains("64000000")) <- checking if health is 100 (0x64)
{
dataGridView1.Rows[i].Cells[2].Value = "false";
}
else
{
if (Status.Contains("00000000")) <- checking if health is null (player not in game)
{
dataGridView1.Rows[i].Cells[2].Value = "false";
}
else <- else.. (than 100 and null = god)
{
dataGridView1.Rows[i].Cells[2].Value = "true";
}
}
}
System.Threading.Thread.Sleep(100); <- pausing the program for 100 milisseconds


private void giveToolStripMenuItem_Click(object sender, EventArgs e)
{
int currentIndex = dataGridView1.CurrentRow.Index; <- obtaining current grid index
long GodOffset = 0x018DC174; <- client 0 offset
long SelectedClientOffset = GodOffset + (0x4E8 * currentIndex); <- calculating selected client offset
MemEditor.WriteInt("iw4mp", SelectedClientOffset, -1); <- writing god (on PS3 would be 0xFF , 0xFF)
GetGOD(); <- Refreshing GOD Status
}
private void removeToolStripMenuItem_Click(object sender, EventArgs e)
{
int currentIndex = dataGridView1.CurrentRow.Index; <- obtaining current grid index
long GodOffset = 0x018DC174; <- client 0 offset
long SelectedClientOffset = GodOffset + (0x4E8 * currentIndex); <- calculating selected client offset
MemEditor.WriteInt("iw4mp", SelectedClientOffset, 100); <- removing god (on PS3 would be 0x64 , 0x00 or 0x00 , 0x64)
GetGOD(); <- Refreshing GOD Status
}
)
!
)
using PC_Memory_Editor___Trainer_Library;
MW2TopTenWORLDMemEditor MemEditor = new MW2TopTenWORLDMemEditor();
dataGridView1.RowCount = 18;
<- change 18 with how many players there are (max players) in the game you are modding...
for (int i = 0; i < 18; i++)
{
dataGridView1.Rows[i].Cells[0].Value = i;
}
GetNames();
GetGOD();

public void GetNames()
{
}
public void GetGOD()
{
}
long client0Name = 0x01AA1A2C; <- defining the client 0 name offset (if on PS3 change to uint)
for (int i = 0; i < 18; i++)
{
long allClientsOffset = client0Name + (0x6CD8 * i); <- adding the interval (defined on the offsets list)
MemEditor.ReadString("iw4mp", allClientsOffset, 15); <- PC Mem Editor Lib Read String func
string Name = File.ReadAllText(@"tmp.txt"); <- Getting the readed memory
File.Delete(@"tmp.txt");<- Deleting the readed memory
dataGridView1.Rows[i].Cells[1].Value = Name; <- Writing the readed memory onto the grid
}
System.Threading.Thread.Sleep(100); <- Telling the program to pause for 100 milisseconds (to prevent crashing
!
long client0Health = 0x018DC174; <- defining client 0 health offset
for (int i = 0; i < 18; i++)
{
long allClientsOffset = client0Health + (0x4E8 * i); <- adding the interval (defined on offsets list)
MemEditor.ReadByte("iw4mp", allClientsOffset, 4); <- reading 4 bytes for each client (00 00 00 00)
string Status = File.ReadAllText(@"tmp.txt"); <- getting the readed memory
File.Delete(@"tmp.txt"); <- deleting the readed memory
if (Status.Contains("64000000")) <- checking if health is 100 (0x64)
{
dataGridView1.Rows[i].Cells[2].Value = "false";
}
else
{
if (Status.Contains("00000000")) <- checking if health is null (player not in game)
{
dataGridView1.Rows[i].Cells[2].Value = "false";
}
else <- else.. (than 100 and null = god)
{
dataGridView1.Rows[i].Cells[2].Value = "true";
}
}
}
System.Threading.Thread.Sleep(100); <- pausing the program for 100 milisseconds


private void giveToolStripMenuItem_Click(object sender, EventArgs e)
{
int currentIndex = dataGridView1.CurrentRow.Index; <- obtaining current grid index
long GodOffset = 0x018DC174; <- client 0 offset
long SelectedClientOffset = GodOffset + (0x4E8 * currentIndex); <- calculating selected client offset
MemEditor.WriteInt("iw4mp", SelectedClientOffset, -1); <- writing god (on PS3 would be 0xFF , 0xFF)
GetGOD(); <- Refreshing GOD Status
}
private void removeToolStripMenuItem_Click(object sender, EventArgs e)
{
int currentIndex = dataGridView1.CurrentRow.Index; <- obtaining current grid index
long GodOffset = 0x018DC174; <- client 0 offset
long SelectedClientOffset = GodOffset + (0x4E8 * currentIndex); <- calculating selected client offset
MemEditor.WriteInt("iw4mp", SelectedClientOffset, 100); <- removing god (on PS3 would be 0x64 , 0x00 or 0x00 , 0x64)
GetGOD(); <- Refreshing GOD Status
}
You must login or register to view this content.
Copyright © 2026, NextGenUpdate.
All Rights Reserved.