Code:
public void God(int pIndex, bool Enabled, XRPC Console)
{
if (Enabled)
{
Console.OR_UInt32(getPlayerState(pIndex) + 0x18, 1);
new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3God: ^2On\"", Console);
}
else
{
Console.AND_Int32(getPlayerState(pIndex) + 0x18, ~1);
new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3God: ^1Off\"", Console);
}
}
public void setSpread(int pIndex, bool Enabled, XRPC Console)
{
if (Enabled)
{
Console.WriteUInt32(getPlayerState(pIndex) + 0x1EC, 1);
new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Spread: ^2On\"", Console);
}
else
{
Console.WriteFloat(getPlayerState(pIndex) + 0x1E8, 0);
Console.WriteUInt32(getPlayerState(pIndex) + 0x1EC, 2);
new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Spread: ^1Off\"", Console);
}
}
public void setSpread(int pIndex, float Spread, XRPC Console)
{
Console.WriteFloat(getPlayerState(pIndex) + 0x1E8, Spread);
Console.WriteUInt32(getPlayerState(pIndex) + 0x1EC, 2);
new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3Spread: ^7" + Spread.ToString() + "\"", Console);
}
public void givePlayerWeapon(int pIndex, string Weapon, int Camo, bool Akimbo, XRPC Console)
{
int weaponIndex = (int)Console.Call(0x823AB640, new object[] { Weapon });
Console.Call(0x823AC900, new object[] { getPlayerState(pIndex), weaponIndex, Akimbo, Camo });
new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_RELIABLE, "h " + weaponIndex.ToString(), Console);
Console.Call(0x82311E80, new object[] { new gEnt().getGentity(pIndex), weaponIndex, 0, 0 });
new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_RELIABLE, "; \"^3Weapon: ^7" + Weapon + "\"", Console);
}
public void TakeAllWeapons(int pIndex, XRPC Console)
{
for (int i = 0; i < 0x10; i++)
Console.WriteUInt32((uint)(getPlayerState(pIndex) + 0x248 + (i * 0x1C)), 0);
new gameFunctions().SV_GameSendServerCommand(pIndex, gameFunctions.svscmd_type.SV_CMD_CAN_IGNORE, "; \"^3All Weapons Taken\"", Console);
}