Post: [1.16/C#] All Client Button Monitoring
03-24-2014, 07:42 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I made this today for those of you making a mod menu if you needed it. I hope it helps you guys :y:

I used my own lib for this, so you're going to have to swap the ReadInt32 function for your own. Or just use PS3Lib Smile

Scripts
    
public class Buttons
{
public static Int32
R2 = 131072,
R1 = -2147483648,
L2 = 65536,
L1 = 1048704,
R3 = 536870912,
L3 = 1074003968,
Square = 67108864,
Cross = 2097152,
Triangle = 8,
Crouch = 4194304,
Prone = 8388608;
}
public bool ButtonPressed(int client, int Button)
{
if (Convert.ToInt32(Debug.ReadInt32(0x01783FC4 + ((uint)client * 0x580Cool Man (aka Tustin))) == Button)
return true;
else return false;
}


How to use:
    
//Add this in a timer or in a background worker!
if (ButtonPressed(0, Buttons.R2 + Buttons.L2))
textBox1.Text = "Client 0 Holding R2 L2";
else if (ButtonPressed(0, Buttons.L1 + Buttons.R3))
textBox1.Text = "Client 0 Holding L1 R3";
else if (ButtonPressed(2, Buttons.Square))
textBox1.Text = "Client 2, Holding Square";


Please leave credits if you use this Smile I also do not allow this script on any other website.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Black Panther for this useful post:

..jigsaw, Hori_By_Nature, iNDMx, Mango_Knife, Notorious
03-24-2014, 07:54 PM #2
Mango_Knife
In my man cave
Originally posted by AlmightySo View Post
I made this today for those of you making a mod menu if you needed it. I hope it helps you guys :y:

I used my own lib for this, so you're going to have to swap the ReadInt32 function for your own. Or just use PS3Lib Smile

Scripts
    
public class Buttons
{
public static Int32
R2 = 131072,
R1 = -2147483648,
L2 = 65536,
L1 = 1048704,
R3 = 536870912,
L3 = 1074003968,
Square = 67108864,
Cross = 2097152,
Triangle = 8,
Crouch = 4194304,
Prone = 8388608;
}
public bool ButtonPressed(int client, int Button)
{
if (Convert.ToInt32(Debug.ReadInt32(0x01783FC4 + ((uint)client * 0x580Cool Man (aka Tustin))) == Button)
return true;
else return false;
}


How to use:
    
//Add this in a timer or in a background worker!
if (ButtonPressed(0, Buttons.R2 + Buttons.L2))
textBox1.Text = "Client 0 Holding R2 L2";
else if (ButtonPressed(0, Buttons.L1 + Buttons.R3))
textBox1.Text = "Client 0 Holding L1 R3";
else if (ButtonPressed(2, Buttons.Square))
textBox1.Text = "Client 2, Holding Square";


Please leave credits if you use this Smile I also do not allow this script on any other website.


You just like this shit, dosent you? Winky Winky

The following user thanked Mango_Knife for this useful post:

03-24-2014, 08:01 PM #3
Originally posted by AlmightySo View Post
I made this today for those of you making a mod menu if you needed it. I hope it helps you guys :y:

I used my own lib for this, so you're going to have to swap the ReadInt32 function for your own. Or just use PS3Lib Smile

Scripts
    
public class Buttons
{
public static Int32
R2 = 131072,
R1 = -2147483648,
L2 = 65536,
L1 = 1048704,
R3 = 536870912,
L3 = 1074003968,
Square = 67108864,
Cross = 2097152,
Triangle = 8,
Crouch = 4194304,
Prone = 8388608;
}
public bool ButtonPressed(int client, int Button)
{
if (Convert.ToInt32(Debug.ReadInt32(0x01783FC4 + ((uint)client * 0x580Cool Man (aka Tustin))) == Button)
return true;
else return false;
}


How to use:
    
//Add this in a timer or in a background worker!
if (ButtonPressed(0, Buttons.R2 + Buttons.L2))
textBox1.Text = "Client 0 Holding R2 L2";
else if (ButtonPressed(0, Buttons.L1 + Buttons.R3))
textBox1.Text = "Client 0 Holding L1 R3";
else if (ButtonPressed(2, Buttons.Square))
textBox1.Text = "Client 2, Holding Square";


Please leave credits if you use this Smile I also do not allow this script on any other website.


Nice bro thanks for this Tiphat

The following user thanked Hori_By_Nature for this useful post:

03-24-2014, 10:34 PM #4
iNDMx
Do a barrel roll!
i got error From YOUR CODE ... its ( DEBUG ) if (Convert.ToInt32(Debug.ReadInt32(0x01783FC4 + ((uint)client * 0x580Cool Man (aka Tustin))) == Button)


like that >> You must login or register to view this content.
03-25-2014, 01:22 AM #5
Originally posted by iNDMx View Post
i got error From YOUR CODE ... its ( DEBUG ) if (Convert.ToInt32(Debug.ReadInt32(0x01783FC4 + ((uint)client * 0x580Cool Man (aka Tustin))) == Button)


like that >> You must login or register to view this content.


If you're using PS3Lib, do
    
PS3.Extension.ReadInt32(x, x);


Or, if you're using a custom Lib, use your own ReadInt32 function.

The following user thanked Black Panther for this useful post:

iNDMx

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo