
//Please Credit Seb5594, Shark And Mango_Knife
#region Boolean's
public static Boolean InGame()
{
return Lib.ReadBool(0x01D17A8C);
}
private static String ReturnInfos(Int32 Index)
{
return Encoding.ASCII.GetString(Lib.GetBytes(0x17A54E0, 0x234)).Replace(@"\", "|").Split('|'
[Index];
}
private static String OnlineInfos(Int32 Index)
{
return Encoding.ASCII.GetString(Lib.GetBytes(0x009aa2d9, 0x234)).Replace(@"\", "|").Split('|'
[Index];
}
private static Boolean Online()
{
if (ReturnInfos(1) == "cg_predictItems")
{
return true;
}
else
{
return false;
}
}
#endregion
#region Host Name?
public static String getHostName()
{
if (InGame())
{
if (Online())
{
return ReturnInfos(
;
}
else
{
return ReturnInfos(16);
}
}
else { return "Not in game"; }
}
#endregion
#region Max Players?
public static String getMaxPlayers()
{
if (InGame())
{
if (Online())
{
return OnlineInfos(1
;
}
else
{
return ReturnInfos(1
;
}
}
else { return "Not in game"; }
}
#endregion
#region Gamemode
public static String getGameMode()
{
if (InGame())
{
if (Online())
{
//Online
switch (OnlineInfos(2))
{
default: return "Unknown Gametype";
case "1": return "Loading Game";
case "war": return "Team Deathmatch";
case "dm": return "Free for All";
case "sd": return "Search and Destroy";
case "dom": return "Domination";
case "dem": return "Demolition";
case "gtnw": return "Global Thermonuclear War";
case "ctf": return "Capture The Flag";
case "arena": return "Arena";
}
}
else
{
//Private Match
switch (ReturnInfos(2))
{
default: return "Unknown Gametype";
case "1": return "Loading Game";
case "war": return "Team Deathmatch";
case "dm": return "Free for All";
case "sd": return "Search and Destroy";
case "dom": return "Domination";
case "dem": return "Demolition";
case "gtnw": return "Global Thermonuclear War";
case "ctf": return "Capture The Flag";
case "arena": return "Arena";
}
}
}
else { return "Not in game"; }
}
#endregion
#region Hardcore?
public static String getHardcore()
{
if (InGame())
{
if (Online())
{
switch (OnlineInfos(4))
{
default: return "Unknown Gametype";
case "20000": return "Loading Game";
case "0": return "Off";
case "1": return "On";
}
}
else
{
switch (ReturnInfos(4))
{
default: return "Unknown Gametype";
case "20000": return "Loading Game";
case "0": return "Off";
case "1": return "On";
}
}
}
else { return "Not in game"; }
}
#endregion
#region Map
public static String get_MapName()
{
String str = Lib.ReadString(0xD495F4), MapStr = "Not in game";
if (InGame())
{
if (str.Contains("afghan"))
MapStr = "Afghan";
if (str.Contains("highrise"))
MapStr = "Highrise";
if (str.Contains("rundown"))
MapStr = "Rundown";
if (str.Contains("quarry"))
MapStr = "Quarry";
if (str.Contains("nightshift"))
MapStr = "Skidrow";
if (str.Contains("terminal"))
MapStr = "Terminal";
if (str.Contains("brecourt"))
MapStr = "Wasteland";
if (str.Contains("derail"))
MapStr = "Derail";
if (str.Contains("estate"))
MapStr = "Estate";
if (str.Contains("favela"))
MapStr = "Favela";
if (str.Contains("invasion"))
MapStr = "Invasion";
if (str.Contains("rust"))
MapStr = "Rust";
if (str.Contains("scrapyard") || str.Contains(("boneyard")))
MapStr = "Scrapyard";
if (str.Contains("sub"))
MapStr = "Subbase";
if (str.Contains("underpass"))
MapStr = "Underpass";
if (str.Contains("checkpoint"))
MapStr = "Karachi";
if (str.Contains("bailout"))
MapStr = "Bailout";
if (str.Contains("compact"))
MapStr = "Salvage";
if (str.Contains("storm") || str.Contains(("storm2")))
MapStr = "Storm";
if (str.Contains("crash"))
MapStr = "Crash";
if (str.Contains("overgrown"))
MapStr = "Overgrown";
if (str.Contains("strike"))
MapStr = "Strike";
if (str.Contains("vacant"))
MapStr = "Vacant";
if (str.Contains("trailerpark"))
MapStr = "Trailer Park";
if (str.Contains("fuel"))
MapStr = "Fuel";
if (str.Contains("abandon"))
MapStr = "Carnival";
if (str.Contains("dlc2_ui_mp"))
MapStr = "Not in game";
}
return MapStr;
}
#endregion

private void timer1_Tick(object sender, EventArgs e)
{
label1.Text = getHostName();
label2.Text = getMapName();
label3.Text = getGameMode();
label4.Text = getHardcore();
label5.Text = getMaxPlayers();
}

//Please Credit Seb5594, Shark And Mango_Knife
#region Boolean's
public static Boolean InGame()
{
return Lib.ReadBool(0x01D17A8C);
}
private static String ReturnInfos(Int32 Index)
{
return Encoding.ASCII.GetString(Lib.GetBytes(0x17A54E0, 0x234)).Replace(@"\", "|").Split('|'
[Index];
}
private static String OnlineInfos(Int32 Index)
{
return Encoding.ASCII.GetString(Lib.GetBytes(0x009aa2d9, 0x234)).Replace(@"\", "|").Split('|'
[Index];
}
private static Boolean Online()
{
if (ReturnInfos(1) == "cg_predictItems")
{
return true;
}
else
{
return false;
}
}
#endregion
#region Host Name?
public static String getHostName()
{
if (InGame())
{
if (Online())
{
return ReturnInfos(
;
}
else
{
return ReturnInfos(16);
}
}
else { return "Not in game"; }
}
#endregion
#region Max Players?
public static String getMaxPlayers()
{
if (InGame())
{
if (Online())
{
return OnlineInfos(1
;
}
else
{
return ReturnInfos(1
;
}
}
else { return "Not in game"; }
}
#endregion
#region Gamemode
public static String getGameMode()
{
if (InGame())
{
if (Online())
{
//Online
switch (OnlineInfos(2))
{
default: return "Unknown Gametype";
case "1": return "Loading Game";
case "war": return "Team Deathmatch";
case "dm": return "Free for All";
case "sd": return "Search and Destroy";
case "dom": return "Domination";
case "dem": return "Demolition";
case "gtnw": return "Global Thermonuclear War";
case "ctf": return "Capture The Flag";
case "arena": return "Arena";
}
}
else
{
//Private Match
switch (ReturnInfos(2))
{
default: return "Unknown Gametype";
case "1": return "Loading Game";
case "war": return "Team Deathmatch";
case "dm": return "Free for All";
case "sd": return "Search and Destroy";
case "dom": return "Domination";
case "dem": return "Demolition";
case "gtnw": return "Global Thermonuclear War";
case "ctf": return "Capture The Flag";
case "arena": return "Arena";
}
}
}
else { return "Not in game"; }
}
#endregion
#region Hardcore?
public static String getHardcore()
{
if (InGame())
{
if (Online())
{
switch (OnlineInfos(4))
{
default: return "Unknown Gametype";
case "20000": return "Loading Game";
case "0": return "Off";
case "1": return "On";
}
}
else
{
switch (ReturnInfos(4))
{
default: return "Unknown Gametype";
case "20000": return "Loading Game";
case "0": return "Off";
case "1": return "On";
}
}
}
else { return "Not in game"; }
}
#endregion
#region Map
public static String get_MapName()
{
String str = Lib.ReadString(0xD495F4), MapStr = "Not in game";
if (InGame())
{
if (str.Contains("afghan"))
MapStr = "Afghan";
if (str.Contains("highrise"))
MapStr = "Highrise";
if (str.Contains("rundown"))
MapStr = "Rundown";
if (str.Contains("quarry"))
MapStr = "Quarry";
if (str.Contains("nightshift"))
MapStr = "Skidrow";
if (str.Contains("terminal"))
MapStr = "Terminal";
if (str.Contains("brecourt"))
MapStr = "Wasteland";
if (str.Contains("derail"))
MapStr = "Derail";
if (str.Contains("estate"))
MapStr = "Estate";
if (str.Contains("favela"))
MapStr = "Favela";
if (str.Contains("invasion"))
MapStr = "Invasion";
if (str.Contains("rust"))
MapStr = "Rust";
if (str.Contains("scrapyard") || str.Contains(("boneyard")))
MapStr = "Scrapyard";
if (str.Contains("sub"))
MapStr = "Subbase";
if (str.Contains("underpass"))
MapStr = "Underpass";
if (str.Contains("checkpoint"))
MapStr = "Karachi";
if (str.Contains("bailout"))
MapStr = "Bailout";
if (str.Contains("compact"))
MapStr = "Salvage";
if (str.Contains("storm") || str.Contains(("storm2")))
MapStr = "Storm";
if (str.Contains("crash"))
MapStr = "Crash";
if (str.Contains("overgrown"))
MapStr = "Overgrown";
if (str.Contains("strike"))
MapStr = "Strike";
if (str.Contains("vacant"))
MapStr = "Vacant";
if (str.Contains("trailerpark"))
MapStr = "Trailer Park";
if (str.Contains("fuel"))
MapStr = "Fuel";
if (str.Contains("abandon"))
MapStr = "Carnival";
if (str.Contains("dlc2_ui_mp"))
MapStr = "Not in game";
}
return MapStr;
}
#endregion

private void timer1_Tick(object sender, EventArgs e)
{
label1.Text = getHostName();
label2.Text = getMapName();
label3.Text = getGameMode();
label4.Text = getHardcore();
label5.Text = getMaxPlayers();
}
public static String getString(String type)
{
String Main = ReadString(0x9AA2D9);
string[] MainArray = Main.Split('\\'
;
Int32 StrLen = Main.Length;
Int32 strIndex = 0;
for (int i = 0; i < MainArray.Length; i++)
{
if (MainArray[i] == type)
{
i++;
strIndex = i;
continue;
}
}
return MainArray[strIndex];
}
g_gametype
g_hardcore
mapname
protocal
scr_game_allowkillcam
scr_team_fftype
shortversion
sv_hostname
sv_maxclients
sv_privateClients
sv_privateClientsForClients
String hostName = getString("sv_hostname");
public static String getString(String type)
{
String Main = ReadString(0x9AA2D9);
string[] MainArray = Main.Split('\\'
;
Int32 StrLen = Main.Length;
Int32 strIndex = 0;
for (int i = 0; i < MainArray.Length; i++)
{
if (MainArray[i] == type)
{
i++;
strIndex = i;
continue;
}
}
return MainArray[strIndex];
}
g_gametype
g_hardcore
mapname
protocal
scr_game_allowkillcam
scr_team_fftype
shortversion
sv_hostname
sv_maxclients
sv_privateClients
sv_privateClientsForClients
String hostName = getString("sv_hostname");
Copyright © 2026, NextGenUpdate.
All Rights Reserved.