
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;
}
no errors just not working
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;
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.