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
11-12-2013, 02:11 PM #20
Originally posted by seb5594 View Post
just updated for 1.03. Enjoy guys :p

The client interval is 0x3600 this didnt work till i changed the client interval to 3600 Smile and seb add me on skype live:xxitstylerxx Smile
11-12-2013, 08:19 PM #21
seb5594
Proud Former Admin
Originally posted by xXItsTylerXx View Post
The client interval is 0x3600 this didnt work till i changed the client interval to 3600 Smile and seb add me on skype live:xxitstylerxx Smile


Oh okay i think they patched something in g_client i will check it later Smile
Added
12-14-2013, 08:58 AM #22
seb5594
Proud Former Admin
Updated for 1.06 Winky Winky
12-14-2013, 09:15 AM #23
ZeiiKeN
Group 935
Originally posted by seb5594 View Post
Updated for 1.06 Winky Winky


0x3600 interval client Awesome face

The following user thanked ZeiiKeN for this useful post:

12-14-2013, 10:48 AM #24
seb5594
Proud Former Admin
Originally posted by ZeiiKeN View Post
0x3600 interval client Awesome face


Thank's still forgot to update the Intervall :p
Updated this func from 1.03 ^^
12-14-2013, 10:51 AM #25
ZeiiKeN
Group 935
Originally posted by seb5594 View Post
Thank's still forgot to update the Intervall :p
Updated this func from 1.03 ^^


Nice :p
12-15-2013, 02:43 PM #26
ItsLollo1000
Little One
Originally posted by seb5594 View Post
Updated for 1.06 Winky Winky


danke :P Happy
12-20-2013, 08:55 PM #27
spitermam
Save Point
Replace(@"\", "|").Split('|'Winky Winky[Index];

PodrĂ­a explicar esto:

Replace(@"\", "|").Split('|'Winky Winky[Index];
01-29-2014, 12:18 AM #28
seb5594
Proud Former Admin
Updated for 1.07, enjoy guys Winky Winky

PS: 1.07 is coming out today, i got it earlier :p

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo