
private static bool Dvar_GetBool(string DVAR)
{//0x291060 - Dvar_GetBool(const char *dvarName)
bool State;
uint Value = (uint)RPC.Call(0x291060, DVAR);
if (Value == 1)
State = true;
else
State = false;
return State;
}
private static string DPAD_IsDown(uint Client)
{
uint Offset = 0;
if (!Dvar_GetBool("xblive_privatematch"))
Offset = 0x38EF1022;
else
Offset = 0x395f1022;
string KeyPressed;
string Key = ReadString(Offset + (Client * 0x68B80));
if (Key == "16")
{
KeyPressed = null;
}
else if (Key == "15")
{
KeyPressed = "Up";
}
else if (Key == "17")
{
KeyPressed = "Down";
}
else if (Key == "19")
{
KeyPressed = "Left";
}
else if (Key == "21")
{
KeyPressed = "Right";
}
else if (Key == "25")
{
KeyPressed = "X";
}
else
{
KeyPressed = Key;
}
return KeyPressed;
}

private static bool Dvar_GetBool(string DVAR)
{//0x291060 - Dvar_GetBool(const char *dvarName)
bool State;
uint Value = (uint)RPC.Call(0x291060, DVAR);
if (Value == 1)
State = true;
else
State = false;
return State;
}
private static string DPAD_IsDown(uint Client)
{
uint Offset = 0;
if (!Dvar_GetBool("xblive_privatematch"))
Offset = 0x38EF1022;
else
Offset = 0x395f1022;
string KeyPressed;
string Key = ReadString(Offset + (Client * 0x68B80));
if (Key == "16")
{
KeyPressed = null;
}
else if (Key == "15")
{
KeyPressed = "Up";
}
else if (Key == "17")
{
KeyPressed = "Down";
}
else if (Key == "19")
{
KeyPressed = "Left";
}
else if (Key == "21")
{
KeyPressed = "Right";
}
else if (Key == "25")
{
KeyPressed = "X";
}
else
{
KeyPressed = Key;
}
return KeyPressed;
}

private static bool Dvar_GetBool(string DVAR)
{//0x291060 - Dvar_GetBool(const char *dvarName)
bool State;
uint Value = (uint)RPC.Call(0x291060, DVAR);
if (Value == 1)
State = true;
else
State = false;
return State;
}
private static string DPAD_IsDown(uint Client)
{
uint Offset = 0;
if (!Dvar_GetBool("xblive_privatematch"))
Offset = 0x38EF1022;
else
Offset = 0x395f1022;
string KeyPressed;
string Key = ReadString(Offset + (Client * 0x68B80));
if (Key == "16")
{
KeyPressed = null;
}
else if (Key == "15")
{
KeyPressed = "Up";
}
else if (Key == "17")
{
KeyPressed = "Down";
}
else if (Key == "19")
{
KeyPressed = "Left";
}
else if (Key == "21")
{
KeyPressed = "Right";
}
else if (Key == "25")
{
KeyPressed = "X";
}
else
{
KeyPressed = Key;
}
return KeyPressed;
}

private static bool Dvar_GetBool(string DVAR)
{//0x291060 - Dvar_GetBool(const char *dvarName)
bool State;
uint Value = (uint)RPC.Call(0x291060, DVAR);
if (Value == 1)
State = true;
else
State = false;
return State;
}
private static string DPAD_IsDown(uint Client)
{
uint Offset = 0;
if (!Dvar_GetBool("xblive_privatematch"))
Offset = 0x38EF1022;
else
Offset = 0x395f1022;
string KeyPressed;
string Key = ReadString(Offset + (Client * 0x68B80));
if (Key == "16")
{
KeyPressed = null;
}
else if (Key == "15")
{
KeyPressed = "Up";
}
else if (Key == "17")
{
KeyPressed = "Down";
}
else if (Key == "19")
{
KeyPressed = "Left";
}
else if (Key == "21")
{
KeyPressed = "Right";
}
else if (Key == "25")
{
KeyPressed = "X";
}
else
{
KeyPressed = Key;
}
return KeyPressed;
}
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 (Debug.ReadInt16(0x38EF1022 + ((uint)client * 0x68B80) == Button || Debug.ReadInt16(0x395f1022 + ((uint)client * 0x68B80) == Button)
return true;
else return false;
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.