Post: (C#) tutorial how to make a dataGridView ( most easy way possible!)
04-06-2014, 04:01 AM #1
PS3|ModdingTeam
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); So i thought i would do this cause i know a lot of people want this probably but have no clue how to do this so yeaTustin

Lets start add this anywhere:

public string GetName(int client)
{
byte[] buffer = new byte[20];
PS3.GetMemory(///name address here/// + 0X3980 * (uint)client, buffer);
string names = Encoding.ASCII.GetString(buffer);
names = names.Replace("\0", "");
return names;
}

Next you need to make your get name (or what ever you named it) button and add this into it and a timer (its been a while i dont remeber if its also needed in a timer i do just to be safe):

dataGridView1.Enabled = true; dataGridView1.RowCount = 18;
for (int i = 0; i < 18; i++)
{
dataGridView1.Update();
dataGridView1.Rows.Cells[0].Value = i;
dataGridView1.Rows.Cells[1].Value = GetName(i);


}

NOTE: The number 18 is how many rows itll count so say it were ghost your using this for you would change the number 18 to 12 get it its simple.

The name offset for mw3 i have added i do not have the other offsets sorry.

Get names Offset = 0x0110D694

So now that you have your datagridview there and coded we can add mods.
Your probably like i know how to do this but you really dont.
Add a context menu strip to your project & click this little arrow on the datagridview: You must login or register to view this content.
Now go to edit colums and of course choose the client names and add a context menu strip to it: You must login or register to view this content. its not in the pic but thats where you will add it to the datagridview.

So now were done you can add mods with the codes below:
use this for mods say you add god mode to your client list you would double click the mod and add this code or this 1 either 1 works

PS3.SetMemory((0xE03CAA + (uint)dataGridView1.CurrentRow.Index * 0x3700), new byte[] { 0xFF, 0xFF });

OR

byte[] godmode = new byte[] { 0xFF, 0xFF }; PS3.SetMemory((0xE03CAA + (uint)dataGridView1.CurrentRow.Index * 0x3700), godmode);

use this for a name changer in the context menu strip:

int Client = dataGridView1.CurrentRow.Index;
string a = Interaction.InputBox("New name: ", "Name Change", GetName(Client), -1, -1);
byte[] NewName = Encoding.ASCII.GetBytes(a + "\0");
SetMemory0x0110D694 + (uint)Client * 0X3980, NewName);

Enjoy btw i do not take credit for this all credits go to: jwm614

The following 2 users say thank you to PS3|ModdingTeam for this useful post:

makeabce

The following 2 users groaned at PS3|ModdingTeam for this awful post:

ByteSource, kiwi_modz
10-01-2015, 05:54 AM #20
More about....You must login or register to view this content.

Mitch
10-03-2015, 06:06 PM #21
Can Some One Tell Me Why This Kid Copy and paste Shark menu base Choco You must login or register to view this content. + ************* . org /threads/c-menu-base-1-24-verification-all-clients.927/
Last edited by MrBeastMods ; 10-03-2015 at 06:09 PM.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo