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-02-2013, 05:38 AM #2
Thanks <3
11-02-2013, 08:59 AM #3
Renton
Hurah!
meh. good for tools. but ill keep my netcheat E jokers <3
11-02-2013, 01:42 PM #4
Cobra-_-Eyes
Do a barrel roll!
thanks bro !!

great work

keep going !! :vince:
11-02-2013, 06:08 PM #5
SC58
Former Staff
0x187398 - Key_IsDown(int localClientNum, int keynum) (1.02)

have fun making fps menu :p
Last edited by SC58 ; 11-03-2013 at 01:35 AM. Reason: 1.02 lol

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

InfinityISB4CK, O-H, Whos Your Host, zZHackzZ
11-02-2013, 09:33 PM #6
seb5594
Proud Former Admin
Updated for 1.02 Smile

The following user thanked seb5594 for this useful post:

O-H
11-03-2013, 01:35 AM #7
SC58
Former Staff
Originally posted by seb5594 View Post
Updated for 1.02 Smile


u should make a key_isdown for 1.02 that be nice :p
11-03-2013, 01:53 AM #8
seb5594
Proud Former Admin
Originally posted by SC58 View Post
u should make a key_isdown for 1.02 that be nice :p


But it can`t be used Online, thats why i havnt looked at Key_IsDown
11-03-2013, 01:54 AM #9
SC58
Former Staff
Originally posted by seb5594 View Post
But it can`t be used Online, thats why i havnt looked at Key_IsDown


yea but key_isdown is only used if u wanna do a fps online other then that it pointless i mean u dont have to idc just want to help out if some one wanted to do a fps menu lmfao
11-03-2013, 02:11 AM #10
seb5594
Proud Former Admin
Originally posted by SC58 View Post
yea but key_isdown is only used if u wanna do a fps online other then that it pointless i mean u dont have to idc just want to help out if some one wanted to do a fps menu lmfao


Huds are released, pointless to make a FPS menu Smile

The following user thanked seb5594 for this useful post:

Bad Luck Kevin

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo