Post: All Clients Buttons Monitoring (C# / 1.11)
11-02-2013, 04:29 AM #1
seb5594
Proud Former Admin
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU Community,

Just a little Release i have seen someone made a Ghetto Function for Buttons Monitoring on 1.00 i will release here a better solution.
Its easy to use and you can use multiple Buttons without doing a Ghetto way for it.

Put this somewhere in your Project

    
public class Buttons
{
public static UInt32
X = 262144,
Square = 805306368,
L1 = 526336,
L2 = 8388608,
L3 = 35651584,
R1 = 16777216,
R2 = 4194304,
R3 = 67108868,
Crouch = 131072,
Prone = 65536,
StartButton = 32768;
}
public Boolean ButtonPressed(UInt32 clientIndex, UInt32 Button)
{
if (BitConverter.ToUInt32(GetBytes(0x00F477B0 + (clientIndex * 0x3700), 4), 0) == Button)
return true;
else return false;
}


    
public byte[] GetBytes(uint address, int length)
{
byte[] buffer = new byte[length];
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, processID, 0L, (ulong)address, ref buffer);
return buffer;
}


If you are using iMCSx's PS3Lib then you don't need the GetBytes Functions cause it is in the Lib Smile

How you can use it (Use a Timer!)
            private void TestButtons()
{
if (ButtonPressed(0, Buttons.X))
MessageBox.Show("Client 0 Pressed X");
if (ButtonPressed(0,( Buttons.L1 + Buttons.R1)))
MessageBox.Show("Client 0 Pressed L1 + R1");
}


Credits:
seb5594 - Creating this Function
Therifboy - Converting some Button Values
Last edited by seb5594 ; 06-03-2014 at 11:33 AM. Reason: Updated for 1.13

The following 30 users say thank you to seb5594 for this useful post:

-SuperMan, ϟ c0rruption ϟ, AlexNGU, Ansity., Asian, BaSs_HaXoR, EcLiPz_MoDD3Rz, EdiTzZ, EG6, FAKA_ELITE, FusionIsDaName, Gendjisan, iMoDz-Baptiste, iNCSx, iNDMx, ItsLollo1000, lollo1000, M-alShammary, Mx444, Notorious, smashedya, Smexeh, SWAT CLAN, TheFuziioN-, Whos Your Host, Winter, worrorfight, xBeaTzMoDz, xPreeks, ZeiiKeN
04-29-2014, 10:33 AM #29
seb5594
Proud Former Admin
Updated for 1.11 Smile
05-04-2014, 02:36 AM #30
Taylor
Former Black Knight.
Moved to Call of Duty: Ghosts Mods, Cheats, and Glitches.
05-05-2014, 10:43 PM #31
iNDMx
Do a barrel roll!
i Got Error How Can Fix it ?? You must login or register to view this content.
but i use the PS3Lib iMCSx Not Costom .. Smile
05-06-2014, 11:44 PM #32
Mx444
Bounty hunter
Thanks =D
05-07-2014, 12:04 PM #33
iNDMx
Do a barrel roll!
i Fixed My Problem ... i
06-03-2014, 11:33 AM #34
seb5594
Proud Former Admin
just updated once again Smile
06-03-2014, 08:41 PM #35
Mango_Knife
In my man cave
Originally posted by seb5594 View Post
just updated once again Smile


Forgot to edit the Title but yeah :p
06-03-2014, 08:55 PM #36
seb5594
Proud Former Admin
Originally posted by Knife View Post
Forgot to edit the Title but yeah :p


I know, but i changed the title
Proof :p

You must login or register to view this content.
06-03-2014, 09:04 PM #37
Mango_Knife
In my man cave
Originally posted by seb5594 View Post
I know, but i changed the title
Proof :p

You must login or register to view this content.

So why this not changed?
You must login or register to view this content.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo