Post: Get Map Name, Hardcore, Host Name, And Gametype Name - Functions C# - 1.14
02-21-2014, 09:27 PM #1
Mango_Knife
In my man cave
(adsbygoogle = window.adsbygoogle || []).push({}); Hey Guys


Well since Seb5594 isnt updated his thread yet and people is dont stop to spamming me with how to get the Get Host Name, And Gamemode name and ect, so here i will explain you how it work.
Seb5594 already released a Code so i will just update it with few more maps, and things.


You must login or register to view this content.

So here it is:
First add this code somewhere in your project:

    
//Server Details Code Starting Here
private String ReturnInfos(Int32 Index)
{
return Encoding.ASCII.GetString(PS3.GetBytes(0x1072868, 0x100)).Replace(@"\", "|").Split('|'Winky Winky[Index];
}
public String getMapName()
{
String Map = ReturnInfos(6);
switch (Map)
{
default: return "Unknown Map";
case "mp_prisonbreak": return "Prison Break";
case "mp_dart": return "Octane";
case "mp_lonestar": return "Tremor";
case "mp_frag": return "Freight";
case "mp_snow": return "Whiteout";
case "mp_fahrenheit": return "Stormfront";
case "mp_hasima": return "Siege";
case "mp_warhawk": return "Warhawk";
case "mp_sovereign": return "Sovereign";
case "mp_zebra": return "Overlord";
case "mp_skeleton": return "Stonehaven";
case "mp_chasm": return "Chasm";
case "mp_flooded": return "Flooded";
case "mp_strikezone": return "Strikezone";
case "mp_descent": return "Free Fall";
case "mp_ca_red_river": return "Contaiment";
case "mp_ca_rumble": return "BayView";
case "mp_swamp": return "Fog";
case "mp_boneyard_ns": return "Ignition";
case "mp_alien_town": return "Point of Contact";
case "mp_alien_armory": return "NightFall";
case "mp_favela_iw6": return "Favela";
case "mp_pirate": return "Mutiny";
case "mp_dig": return "Pharaoh";
case "mp_zulu": return "Departed";
}
}
public String getGameMode()
{
String GM = ReturnInfos(2);
switch (GM)
{
default: return "Unknown Gametype";
case "war": return "Team Deathmatch";
case "dm": return "Free for All";
case "sd": return "Search and Destroy";
case "dom": return "Domination";
case "conf": return "Kill Confirmed";
case "sr": return "Search and Rescue";
case "grind": return "Grind";
case "blitz": return "Blitz";
case "cranked": return "Cranked";
case "infect": return "Infected";
case "sotf": return "Hunted";
case "dem": return "Demolition";
case "horde": return "Safeguard";
case "sotf_ffa": return "Hunted FFA";
case "gun": return "Gun Game";
}
}

public String getHardcore()
{
String HC = ReturnInfos(4);
switch (HC)
{
default: return "Unknown Gametype";
case "0": return "Hardcore - Off";
case "1": return "Hardcore - On";
}
}

public String getHostName()
{
String Host = ReturnInfos(1Cool Man (aka Tustin);
if (Host == "Modern Warfare 3")
return "Dedicated Server (No Player is Host)";
else if (Host == "")
return "You are not In-Game";
else return Host;
}
//Server Details Code Ends Here
//You should use PS3Lib


How to use:
Put 4 labels on your Form as example

label1.Text = getHostName();
label2.Text = getMapName();
label3.Text = getGameMode();
label4.Text = getHardcore();

Then make a Button and add this code in:
    
label52.Text = getHostName();
label53.Text = getMapName();
label49.Text = getGameMode();
label58.Text = getHardcore();


You can use timer if you want to get this automatic.

Credits:
Seb5594: Creating this function
mrclip26: New Maps
Me (Mango_Knife): Updating this function.

If you want to see an open source with all that in (So you could understand better) Try Here:
You must login or register to view this content.


Have Fun Awesome face
Hope it helpes
Last edited by Mango_Knife ; 07-04-2014 at 03:48 PM. Reason: Updated to 1.14

The following 16 users say thank you to Mango_Knife for this useful post:

-SuperMan, RawDog2002, BroIDontMod, BVBdede, iMoDz-Baptiste, ImPokerz, jwm614, kiwi_modz, Notorious, xProvXKiller, RatchetBooty, Reus_BVB, Fatality, zSunriseModz
03-05-2014, 06:00 PM #11
iTпDM
Vault dweller
Good Job Mango , Best man
03-06-2014, 10:08 AM #12
what is de code for auto refresh? thanks and good job!! Happy
03-06-2014, 01:24 PM #13
Mango_Knife
In my man cave
Originally posted by MrWHackESP View Post
what is de code for auto refresh? thanks and good job!! Happy


just put this on a timer, and thanks.
03-06-2014, 04:51 PM #14
jwm614
NextGenUpdate Elite
0x020ba551 server info
03-06-2014, 07:25 PM #15
NO Funciona el codigo revise el Compensacion.Gracias Buen trabajo
03-07-2014, 12:04 PM #16
Mango_Knife
In my man cave
Originally posted by andaluzmodz View Post
NO Funciona el codigo revise el Compensacion.Gracias Buen trabajo


English?
03-07-2014, 02:00 PM #17
does not work gives me error compensation right? someone you work?
03-08-2014, 09:38 AM #18
Mango_Knife
In my man cave
Originally posted by andaluzmodz View Post
does not work gives me error compensation right? someone you work?


Try to see in the open source, maybe something's wrong at your coding...
03-08-2014, 12:29 PM #19
MaNamesTyler
Little One
Originally posted by Knife View Post
Hey Guys


Well since Seb5594 isnt updated his thread yet and people is dont stop to spamming me with how to get the Get Host Name, And Gamemode name and ect, so here i will explain you how it work.
Seb5594 already released a Code so i will just update it with few more maps, and things.


You must login or register to view this content.

So here it is:
First add this code somewhere in your project:

    
//Server Details Code Starting Here
private String ReturnInfos(Int32 Index)
{
return Encoding.ASCII.GetString(PS3.GetBytes(0x010719e7, 0x100)).Replace(@"\", "|").Split('|'Winky Winky[Index];
}
public String getMapName()
{
String Map = ReturnInfos(6);
switch (Map)
{
default: return "Unknown Map";
case "mp_prisonbreak": return "Prison Break";
case "mp_dart": return "Octane";
case "mp_lonestar": return "Tremor";
case "mp_frag": return "Freight";
case "mp_snow": return "Whiteout";
case "mp_fahrenheit": return "Stormfront";
case "mp_hasima": return "Siege";
case "mp_warhawk": return "Warhawk";
case "mp_sovereign": return "Sovereign";
case "mp_zebra": return "Overlord";
case "mp_skeleton": return "Stonehaven";
case "mp_chasm": return "Chasm";
case "mp_flooded": return "Flooded";
case "mp_strikezone": return "Strikezone";
case "mp_descent": return "Free Fall";
case "mp_ca_red_river": return "Contaiment";
case "mp_ca_rumble": return "BayView";
case "mp_swamp": return "Fog";
case "mp_boneyard_ns": return "Ignition";
case "mp_alien_town": return "Point of Contact";
case "mp_alien_armory": return "NightFall";
}
}
public String getGameMode()
{
String GM = ReturnInfos(2);
switch (GM)
{
default: return "Unknown Gametype";
case "war": return "Team Deathmatch";
case "dm": return "Free for All";
case "sd": return "Search and Destroy";
case "dom": return "Domination";
case "conf": return "Kill Confirmed";
case "sr": return "Search and Rescue";
case "grind": return "Grind";
case "blitz": return "Blitz";
case "cranked": return "Cranked";
case "infect": return "Infected";
case "sotf": return "Hunted";
case "dem": return "Demolition";
case "horde": return "Safeguard";
case "sotf_ffa": return "Hunted FFA";
case "gun": return "Gun Game";
}
}

public String getHardcore()
{
String HC = ReturnInfos(4);
switch (HC)
{
default: return "Unknown Gametype";
case "0": return "Hardcore - Off";
case "1": return "Hardcore - On";
}
}

public String getHostName()
{
String Host = ReturnInfos(1Cool Man (aka Tustin);
if (Host == "Modern Warfare 3")
return "Dedicated Server (No Player is Host)";
else if (Host == "")
return "You are not In-Game";
else return Host;
}
//Server Details Code Ends Here
//You should use PS3Lib


How to use:
Put 4 labels on your Form as example

label1.Text = getHostName();
label2.Text = getMapName();
label3.Text = getGameMode();
label4.Text = getHardcore();

Then make a Button and add this code in:
    
label52.Text = getHostName();
label53.Text = getMapName();
label49.Text = getGameMode();
label58.Text = getHardcore();


You can use timer if you want to get this automatic.

Credits:
Seb5594: Creating this function
Me (Mango_Knife): Updating this function.

If you want to see an open source with all that in (So you could understand better) Try Here:
You must login or register to view this content.

Have Fun Awesome face
Hope it helpes


I Dont Think That is the right offset...

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo