Post: Get Clients Multiplayer C#
11-10-2015, 03:47 PM #1
RF0oDxM0Dz
You talkin to me?
(adsbygoogle = window.adsbygoogle || []).push({});
Hey Guys

you need to

Button = 2
listBox = 1

this code GET_PLAYER_NAME in Code Form.h


    
public static string GET_CLIENT_NAME(int ClientNum)
{
byte[] buffer = new byte[20];
RPC.PS3.GetMemory((uint)(0x192E38C + (0x61D8 * ClientNum)), buffer);
RPC.PS3.GetMemory((uint)(0x192E38C + (0x61D8 * ClientNum)), buffer);
return Encoding.ASCII.GetString(buffer).Replace("\0", "");
}


Get Client offset = 0x192E38C for 1.02
G_ClientSize = 0x61D8


Now Rename buton1 to [Refresh]

open code button[Refresh]

and paste this

    
this.listBox1.Items.Clear();
for (int i = 0; i < 18; i++)
{
// this.listBox1.Items.Clear();
this.listBox1.Items.GetHashCode();
this.listBox1.Items.Add(GET_CLIENT_NAME(i));
}



and now Rename Button2 to UAV


and open code button UAV & paste this code

    
UAV1();


and this code for UAV

    
bool UV1;
void UAV1()
{
if (UV1 == false)
{
UV1 = true;
byte[] input = new byte[4];
input[0] = 0x60;
RPC.PS3.SetMemory((uint)(0xc7c38 + (this.BO3_CLIENT.SelectedIndex * 0x61DCool Man (aka Tustin)), input);
// RPC.SV_GameSendServerCommand(this.BO3_CLIENT.SelectedIndex, "O \"Unk ^2On\"");
}
else
{
UV1 = false;
byte[] buffer = new byte[] { 0x41, 0x82, 0x00, 0xAC };
RPC.PS3.SetMemory((uint)(0xc7c38 + (this.BO3_CLIENT.SelectedIndex * 0x61DCool Man (aka Tustin)), buffer);
// RPC.SV_GameSendServerCommand(this.BO3_CLIENT.SelectedIndex, "O \"Unk ^1Off\"");

}
}


Finshed

The following 2 users say thank you to RF0oDxM0Dz for this useful post:

Dro, jazrawi_ae

The following user groaned RF0oDxM0Dz for this awful post:

xPreeks
12-05-2015, 04:47 PM #11
thanks :p
12-09-2015, 09:24 AM #12
Toxic
former staff
Originally posted by RFOoD
Hey Guys

you need to

Button = 2
listBox = 1

this code GET_PLAYER_NAME in Code Form.h


    
public static string GET_CLIENT_NAME(int ClientNum)
{
byte[] buffer = new byte[20];
RPC.PS3.GetMemory((uint)(0x192E38C + (0x61D8 * ClientNum)), buffer);
RPC.PS3.GetMemory((uint)(0x192E38C + (0x61D8 * ClientNum)), buffer);
return Encoding.ASCII.GetString(buffer).Replace("\0", "");
}


Get Client offset = 0x192E38C for 1.02
G_ClientSize = 0x61D8


Now Rename buton1 to [Refresh]

open code button[Refresh]

and paste this

    
this.listBox1.Items.Clear();
for (int i = 0; i < 18; i++)
{
// this.listBox1.Items.Clear();
this.listBox1.Items.GetHashCode();
this.listBox1.Items.Add(GET_CLIENT_NAME(i));
}



and now Rename Button2 to UAV


and open code button UAV & paste this code

    
UAV1();


and this code for UAV

    
bool UV1;
void UAV1()
{
if (UV1 == false)
{
UV1 = true;
byte[] input = new byte[4];
input[0] = 0x60;
RPC.PS3.SetMemory((uint)(0xc7c38 + (this.BO3_CLIENT.SelectedIndex * 0x61DCool Man (aka Tustin)), input);
// RPC.SV_GameSendServerCommand(this.BO3_CLIENT.SelectedIndex, "O \"Unk ^2On\"");
}
else
{
UV1 = false;
byte[] buffer = new byte[] { 0x41, 0x82, 0x00, 0xAC };
RPC.PS3.SetMemory((uint)(0xc7c38 + (this.BO3_CLIENT.SelectedIndex * 0x61DCool Man (aka Tustin)), buffer);
// RPC.SV_GameSendServerCommand(this.BO3_CLIENT.SelectedIndex, "O \"Unk ^1Off\"");

}
}


Finshed


cant believe people these days Sal
this is probably the best way to use it:
                       static public string getPlayerName(uint Client)
{
string _null = YourPS3API.Extension.ReadString(/*Name Offest*/ + (/*Client Interval*/ * Client));
return _null = _null == "" ? "Null" : _null;
}


it'll return "Null" for the un-existed users
12-09-2015, 03:01 PM #13
Originally posted by ToXiC View Post
cant believe people these days Sal
this is probably the best way to use it:
                       static public string getPlayerName(uint Client)
{
string _null = YourPS3API.Extension.ReadString(/*Name Offest*/ + (/*Client Interval*/ * Client));
return _null = _null == "" ? "Null" : _null;
}


it'll return "Null" for the un-existed users


Should use string.IsNullOrWhiteSpace in this case, just more proper
But you don't need that last part like that. This would be better:
    
return _null == "" ? "Null" : _null;// return string.IsNullOrWhiteSpace(_null) ? "Null" : _null;
12-09-2015, 03:08 PM #14
Toxic
former staff
Originally posted by John View Post
Should use string.IsNullOrWhiteSpace in this case, just more proper
But you don't need that last part like that. This would be better:
    
return _null == "" ? "Null" : _null;// return string.IsNullOrWhiteSpace(_null) ? "Null" : _null;


Or just use .Trim(); :p


Edit:
I did not read ur whole code, dont judge my coding plz tears
Last edited by Toxic ; 12-09-2015 at 03:11 PM.

The following user thanked Toxic for this useful post:

John
12-12-2015, 08:53 AM #15
Adrian
Adrian is back!
Originally posted by RFOoD
Hey Guys

you need to

Button = 2
listBox = 1

this code GET_PLAYER_NAME in Code Form.h


    
public static string GET_CLIENT_NAME(int ClientNum)
{
byte[] buffer = new byte[20];
RPC.PS3.GetMemory((uint)(0x192E38C + (0x61D8 * ClientNum)), buffer);
RPC.PS3.GetMemory((uint)(0x192E38C + (0x61D8 * ClientNum)), buffer);
return Encoding.ASCII.GetString(buffer).Replace("\0", "");
}


Get Client offset = 0x192E38C for 1.02
G_ClientSize = 0x61D8


Now Rename buton1 to [Refresh]

open code button[Refresh]

and paste this

    
this.listBox1.Items.Clear();
for (int i = 0; i < 18; i++)
{
// this.listBox1.Items.Clear();
this.listBox1.Items.GetHashCode();
this.listBox1.Items.Add(GET_CLIENT_NAME(i));
}



and now Rename Button2 to UAV


and open code button UAV & paste this code

    
UAV1();


and this code for UAV

    
bool UV1;
void UAV1()
{
if (UV1 == false)
{
UV1 = true;
byte[] input = new byte[4];
input[0] = 0x60;
RPC.PS3.SetMemory((uint)(0xc7c38 + (this.BO3_CLIENT.SelectedIndex * 0x61DCool Man (aka Tustin)), input);
// RPC.SV_GameSendServerCommand(this.BO3_CLIENT.SelectedIndex, "O \"Unk ^2On\"");
}
else
{
UV1 = false;
byte[] buffer = new byte[] { 0x41, 0x82, 0x00, 0xAC };
RPC.PS3.SetMemory((uint)(0xc7c38 + (this.BO3_CLIENT.SelectedIndex * 0x61DCool Man (aka Tustin)), buffer);
// RPC.SV_GameSendServerCommand(this.BO3_CLIENT.SelectedIndex, "O \"Unk ^1Off\"");

}
}


Finshed


Thread has been moved to Black Ops 3 Mods and Cheats.
12-12-2015, 11:45 AM #16
Originally posted by ToXiC View Post
lmao, why would u use switch loop for two statements?
it is pointless af,


Lmao wat, switch is a statement not a loop, it's a more cleaner and faster if/else system...I agree the scenario he used it in is stupid and pointless, but you calling it a loop is just as stupid True story
12-12-2015, 12:47 PM #17
Toxic
former staff
Originally posted by Bitwise View Post
Lmao wat, switch is a statement not a loop, it's a more cleaner and faster if/else system...I agree the scenario he used it in is stupid and pointless, but you calling it a loop is just as stupid True story


case* not switch, my bad Sal
u got the point anyways Crying
01-12-2016, 01:10 PM #18
kiwi_modz
I defeated!
Originally posted by RFOoD
Hey Guys

you need to

Button = 2
listBox = 1

this code GET_PLAYER_NAME in Code Form.h


    
public static string GET_CLIENT_NAME(int ClientNum)
{
byte[] buffer = new byte[20];
RPC.PS3.GetMemory((uint)(0x192E38C + (0x61D8 * ClientNum)), buffer);
RPC.PS3.GetMemory((uint)(0x192E38C + (0x61D8 * ClientNum)), buffer);
return Encoding.ASCII.GetString(buffer).Replace("\0", "");
}


Get Client offset = 0x192E38C for 1.02
G_ClientSize = 0x61D8


Now Rename buton1 to [Refresh]

open code button[Refresh]

and paste this

    
this.listBox1.Items.Clear();
for (int i = 0; i < 18; i++)
{
// this.listBox1.Items.Clear();
this.listBox1.Items.GetHashCode();
this.listBox1.Items.Add(GET_CLIENT_NAME(i));
}



and now Rename Button2 to UAV


and open code button UAV & paste this code

    
UAV1();


and this code for UAV

    
bool UV1;
void UAV1()
{
if (UV1 == false)
{
UV1 = true;
byte[] input = new byte[4];
input[0] = 0x60;
RPC.PS3.SetMemory((uint)(0xc7c38 + (this.BO3_CLIENT.SelectedIndex * 0x61DCool Man (aka Tustin)), input);
// RPC.SV_GameSendServerCommand(this.BO3_CLIENT.SelectedIndex, "O \"Unk ^2On\"");
}
else
{
UV1 = false;
byte[] buffer = new byte[] { 0x41, 0x82, 0x00, 0xAC };
RPC.PS3.SetMemory((uint)(0xc7c38 + (this.BO3_CLIENT.SelectedIndex * 0x61DCool Man (aka Tustin)), buffer);
// RPC.SV_GameSendServerCommand(this.BO3_CLIENT.SelectedIndex, "O \"Unk ^1Off\"");

}
}


Finshed


Originally posted by Toxic View Post
case* not switch, my bad Sal
u got the point anyways Crying


Datagrid ftw

Call it
    for (int i = 0; i < 12; i++)
{
dataGridView.Enabled = true;
dataGridView.RowCount = 12;
dataGridView.Rows[i].Cells[0].Value = i;
dataGridView.Rows[i].Cells[1].Value = Functions.GetName(i);
}
Get Name
    public static string GetName(int Client)
{
byte[] buffer = new byte[16];
PS3.GetMemory(26396928 + 24084 + (uint)Client * 25088, ref buffer);
string names = Encoding.ASCII.GetString(buffer);
names = names.Replace("\0", "");
return names;

}
01-12-2016, 02:24 PM #19
Toxic
former staff
Originally posted by ResistTheKiwi View Post
Datagrid ftw

Call it
    for (int i = 0; i < 12; i++)
{
dataGridView.Enabled = true;
dataGridView.RowCount = 12;
dataGridView.Rows[i].Cells[0].Value = i;
dataGridView.Rows[i].Cells[1].Value = Functions.GetName(i);
}
Get Name
    public static string GetName(int Client)
{
byte[] buffer = new byte[16];
PS3.GetMemory(26396928 + 24084 + (uint)Client * 25088, ref buffer);
string names = Encoding.ASCII.GetString(buffer);
names = names.Replace("\0", "");
return names;

}

i think u quoted me by mistake :|
i provided the function to get the names, not to add them to da datagrid thingy Happy

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo