Post: [1.13] All Client Dpad Button Monitoring
04-03-2014, 07:09 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Updated this for 1.12, for your guy's menus and what not.

Code
    
public class Buttonz
{
public static int
DpadUp = 13617,
DpadDown = 14129,
DpadLeft = 14641,
DpadRight = 12594,
Cross = 13618,
Square = 12593,
Circle = 13106,
R2 = 53,
R1 = 49,
L2 = 55,
L1 = 13105,
L3 = 57,
R3 = 14130;
}
public bool ButtonPressed(int client, int Button)
{
if (BitConverter.ToInt16(Debug.GetBytes(0x38B31A52 + ((uint)client * 0x6FA00), 2), 0) == Button || BitConverter.ToInt16(Debug.GetBytes(0x39041A52 + ((uint)client * 0x6FA00), 2), 0) == Button)
return true;
else return false;
}


This function monitors offline and online clients. You're going to need to replace the getbytes function for whichever function you're using. Have fun.

Creds
    
SC58
Me
Last edited by Black Panther ; 06-08-2014 at 07:51 PM. Reason: 1.13

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

br0wniiez, FusionIsDaName, iNDMx, Jannik007, M-alShammary, Mango_Knife, Notorious, SC58, UnknownNightmare
04-03-2014, 07:13 PM #2
Mango_Knife
In my man cave
Originally posted by AlmightySo View Post
Updated this for 1.10, for your guy's menus and what not.

Code
    
public class Buttonz
{
public static int
DpadUp = 13617,
DpadDown = 14129,
DpadLeft = 14641,
DpadRight = 12594,
Cross = 13618,
Square = 12593,
Circle = 13106,
R2 = 53,
R1 = 49,
L2 = 55,
L1 = 13105,
L3 = 57,
R3 = 14130;
}
public static bool ButtonPressed(int client, int Button)
{
if (BitConverter.ToInt16(Debug.GetBytes(0x38A81A52 + ((uint)client * 0x6FA00), 2), 0) == Button || BitConverter.ToInt16(Debug.GetBytes(0x38F91A52 + ((uint)client * 0x6FA00), 2), 0) == Button)
return true;
else return false;
}


This function monitors offline and online clients. You're going to need to replace the getbytes function for whichever function you're using. Have fun.

Creds
    
SC58
Me


:yes:
You could update the jetpack (findPS Offset?)
04-03-2014, 07:17 PM #3
Originally posted by Knife View Post
:yes:
You could update the jetpack (findPS Offset?)


Did that as you were making that post :p
04-03-2014, 07:42 PM #4
ItsLollo1000
Little One
Originally posted by AlmightySo View Post
Updated this for 1.10, for your guy's menus and what not.

Code
    
public class Buttonz
{
public static int
DpadUp = 13617,
DpadDown = 14129,
DpadLeft = 14641,
DpadRight = 12594,
Cross = 13618,
Square = 12593,
Circle = 13106,
R2 = 53,
R1 = 49,
L2 = 55,
L1 = 13105,
L3 = 57,
R3 = 14130;
}
public static bool ButtonPressed(int client, int Button)
{
if (BitConverter.ToInt16(Debug.GetBytes(0x38AF1A52 + ((uint)client * 0x6FA00), 2), 0) == Button || BitConverter.ToInt16(Debug.GetBytes(0x39011A52 + ((uint)client * 0x6FA00), 2), 0) == Button)
return true;
else return false;
}


This function monitors offline and online clients. You're going to need to replace the getbytes function for whichever function you're using. Have fun.

Creds
    
SC58
Me


Corey make it like this:
    
public class Buttons
{
public static UInt32
DPad_Up = 13617,
DPad_Down = 14129,
DPad_Left = 14641,
DPad_Right = 12594,
X = 1024,
O = 512,
Square = 2097152,
L3 = 139264,
R3 = 262144,
L2 = 32768,
R2 = 16384,
Start = 128,
L1 = 2056,
R1 = 65536,
Crouch = 512,
Prone = 256;
}
public static Boolean ButtonPressed(Int32 Client, UInt32 Button)
{
UInt32 Buttons = 0x0000;
UInt32 Offset = (Base.PS3.ReadUInt32(0x0023F23Cool Man (aka Tustin));
if (BitConverter.ToInt16(Base.PS3.GetMemory(Offset + Buttons + (UInt32)Client * 0x6FA00, 2), 0) == Button)
return true;
return false;
}
04-03-2014, 07:47 PM #5
Originally posted by ItsLollo1000 View Post
Corey make it like this:
    
public class Buttons
{
public static UInt32
DPad_Up = 13617,
DPad_Down = 14129,
DPad_Left = 14641,
DPad_Right = 12594,
X = 1024,
O = 512,
Square = 2097152,
L3 = 139264,
R3 = 262144,
L2 = 32768,
R2 = 16384,
Start = 128,
L1 = 2056,
R1 = 65536,
Crouch = 512,
Prone = 256;
}
public static Boolean ButtonPressed(Int32 Client, UInt32 Button)
{
UInt32 Buttons = 0x0000;
UInt32 Offset = (Base.PS3.ReadUInt32(0x0023F23Cool Man (aka Tustin));
if (BitConverter.ToInt16(Base.PS3.GetMemory(Offset + Buttons + (UInt32)Client * 0x6FA00, 2), 0) == Button)
return true;
return false;
}


Why? lol
04-03-2014, 07:49 PM #6
ItsLollo1000
Little One
Originally posted by AlmightySo View Post
Why? lol


idk then u dont need the || / or :P
04-03-2014, 08:12 PM #7
Originally posted by ItsLollo1000 View Post
idk then u dont need the || / or :P

It checks if you're either online or offline, since Client_s changes from one to another.
04-03-2014, 09:40 PM #8
M-alShammary
I am error
You great man <3

The following user thanked M-alShammary for this useful post:

04-04-2014, 01:32 PM #9
flynhigh09
Little One
What was the way you had for 1.09, wasnt it from G_Entity or G_Client..
04-04-2014, 02:06 PM #10
Originally posted by flynhigh09 View Post
What was the way you had for 1.09, wasnt it from G_Entity or G_Client..


Here
    
public class Buttons
{
public static Int32
L1 = 526336,
R1 = 16777216,
L2 = 8388608,
R2 = 4194304,
L3 = 35651584,
R3 = 67108868,
Cross = 262144,
Crouch = 131072,
Square = 805306368,
Start = 32768;
}
public bool ButtonPressed(int client, Int32 Button)
{
if (BitConverter.ToInt32(Debug.GetBytes(0xF477b0 + ((uint)client * 0x3700), Cool Man (aka Tustin), 0) == Button)
return true;
else return false;
}

The following user thanked Black Panther for this useful post:

flynhigh09

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo