Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static PS3API PS3 = new PS3API();
- //Credits to seb5594 for the original function on Call Of Duty Ghosts
- //Credits to me (Mango_Knife) For make this for black ops 2
- //iMCSx And Enstone - PS3Lib.
- public static String ReturnInfo(Int32 Index)
- {
- UInt32 g_gametype = 0x00f57fd6;
- return Encoding.ASCII.GetString(PS3.GetBytes(g_gametype, 0x100)).Replace(@"\", "|").Split('|')[Index];
- }
- public static String getMapName()
- {
- if (ReturnInfo(6) == "2092")
- {
- switch (ReturnInfo(4))
- {
- default: return "Unknown Map";
- case "": return "Map is loading...";
- case "mp_la": return "Aftermath";
- case "mp_dig": return "Dig";
- case "mp_pod": return "Pod";
- case "mp_takeoff": return "Take Off";
- case "mp_frostbite": return "Frost";
- case "mp_mirage": return "Mirage";
- case "mp_hydro": return "Hydro";
- case "mp_skate": return "Grind";
- case "mp_downhill": return "Down Hill";
- case "mp_concert": return "Encore";
- case "mp_vertigo": return "Vertigo";
- case "mp_magma": return "Magma";
- case "mp_Studio": return "studio";
- case "mp_paintball": return "Rush";
- case "mp_Cove": return "Castaway";
- case "mp_drone": return "Drone";
- case "mp_express": return "Express";
- case "mp_Detour": return "bridge";
- case "mp_Uplink": return "uplink";
- case "mp_socotra": return "Yemen";
- case "mp_turbine": return "Turbine";
- case "mp_village": return "Standoff";
- case "mp_Slums": return "slums";
- case "mp_raid": return "Raid";
- case "mp_nightclub": return "Plaza";
- case "mp_overflow": return "Overflow";
- case "mp_meltdown": return "Meltdown";
- case "mp_hijacked": return "Hijacked";
- case "mp_carrier": return "Carrier";
- case "mp_dockside": return "Cargo";
- case "mp_nuketown_2020": return "Nuketown 2025";
- //---------- Zombies ----------\\
- case "zm_transit": return "Green Run";
- case "zm_prison": return "M.O.T.D";
- case "zm_nuked": return "Nuketown";
- case "zm_highrise": return "Die Rise";
- case "zm_buried": return "Buried";
- case "zm_tomb": return "Origins";
- }
- }
- else
- {
- switch (ReturnInfo(6))
- {
- default: return "Unknown Map";
- case "": return "Map is loading...";
- case "mp_la": return "Aftermath";
- case "mp_dig": return "Dig";
- case "mp_pod": return "Pod";
- case "mp_takeoff": return "Take Off";
- case "mp_frostbite": return "Frost";
- case "mp_mirage": return "Mirage";
- case "mp_hydro": return "Hydro";
- case "mp_skate": return "Grind";
- case "mp_downhill": return "Down Hill";
- case "mp_concert": return "Encore";
- case "mp_vertigo": return "Vertigo";
- case "mp_magma": return "Magma";
- case "mp_Studio": return "studio";
- case "mp_paintball": return "Rush";
- case "mp_Cove": return "Castaway";
- case "mp_drone": return "Drone";
- case "mp_express": return "Express";
- case "mp_Detour": return "bridge";
- case "mp_Uplink": return "uplink";
- case "mp_socotra": return "Yemen";
- case "mp_turbine": return "Turbine";
- case "mp_village": return "Standoff";
- case "mp_Slums": return "slums";
- case "mp_raid": return "Raid";
- case "mp_nightclub": return "Plaza";
- case "mp_overflow": return "Overflow";
- case "mp_meltdown": return "Meltdown";
- case "mp_hijacked": return "Hijacked";
- case "mp_carrier": return "Carrier";
- case "mp_dockside": return "Cargo";
- case "mp_nuketown_2020": return "Nuketown 2025";
- //---------- Zombies ----------\\
- case "zm_transit": return "Green Run";
- case "zm_prison": return "M.O.T.D";
- case "zm_nuked": return "Nuketown";
- case "zm_highrise": return "Die Rise";
- case "zm_buried": return "Buried";
- case "zm_tomb": return "Origins";
- }
- }
- }
- public static String getGameMode()
- {
- String GM = ReturnInfo(2);
- switch (GM)
- {
- default: return "Unknown Gametype";
- case "": return "Map is loading...";
- case "tdm": 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 "koth": return "Hardpoint";
- case "hq": return "Headquarters";
- case "sotf": return "Hunted";
- case "dem": return "Demolition";
- case "oneflag": return "One Flag CTF";
- case "horde": return "Safeguard";
- case "sotf_ffa": return "Hunted FFA";
- case "shrp": return "Sharp Shooter";
- case "ctf": return "Capture The Flag";
- case "oic": return "One In The Chamber";
- case "sas": return "Sticks And Stones";
- case "gun": return "Gun Game";
- //---------- Zombies ----------\\
- case "zclassic": return "Zombies";
- case "zstandard": return "Survival";
- case "zgrief": return "Grief";
- }
- }
- public static String getHostName()
- {
- try
- {
- String Host = ReturnInfo(22);
- if (Host == "")
- return "You are not In-Game";
- else return Host;
- }
- catch
- {
- String Host = ReturnInfo(12);
- if (Host == "")
- return "You are not In-Game";
- else return Host;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement