public static class Buttons
{
public static Int32
L1 = 526336,
L2 = 32768,
L3 = 8194,
R1 = 1,
R2 = 16384,
R3 = 67108868,
Cross = 1024,
Square = 48,
Crouch = 512,
Prone = 256,
Start = 8388608;
}
public static bool ButtonPressed(int client, int Buttons)
{
if (PS3.Extension.ReadInt32(0x19090B4 + ((uint)client * 0x4180)) == Buttons)
return true;
else return false;
}
public void JetPack(int client)
{
float jH = PS3.Extension.ReadFloat(0x190538C + ((uint)client * 0x4180));
jH += 100;
PS3.Extension.WriteFloat(0x190538C + ((uint)client * 0x4180), jH);
}
//How to use it in a timer or backgroundworker
if(ButtonPressed(0, Buttons.Cross))
{
JetPack(0);
}
Location of Playerdata.def struct = 0x785380
Copyright © 2024, NextGenUpdate.
All Rights Reserved.