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-29-2014, 07:49 PM #11
Updated to 1.11

The following user thanked Black Panther for this useful post:

FusionIsDaName
05-13-2014, 09:10 PM #12
Updated to 1.12
06-08-2014, 07:52 PM #13
Updated to 1.13

The following user thanked Black Panther for this useful post:

ImSooCool
06-08-2014, 09:39 PM #14
ImSooCool
Vault dweller
Originally posted by BlackPanther View Post
Updated to 1.13

Thanks for this buddy
06-08-2014, 10:03 PM #15
ImSooCool
Vault dweller
Originally posted by BlackPanther View Post
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


sorry to tell to this but this is not working on 1.13 as i just tested it, i hope you can fix it thanks again
02-08-2015, 03:08 AM #16
ItzMatriix
Are you high?
can someone update this for 1.16

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo