Advertisement
BaSs_HaXoR

Ghosts 1.07 Get Map Name Get Game Mode Offset + Code (VB)

Feb 21st, 2014
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 3.99 KB | None | 0 0
  1. 'Coded By BaSs_HaXoR
  2. 'To Convert to C# just go here...http://www.developerfusion.com/tools/convert/vb-to-csharp/
  3.  
  4. Private Sub Getmapnameandgamemode_Tick(sender As Object, e As EventArgs) Handles Getmapnameandgamemode.Tick
  5.         Dim getGameMode As Byte() = New Byte(16) {}
  6.         PS3.GetMemory(&H145E850, getGameMode)
  7.         Dim GameMode As String = Encoding.ASCII.GetString(getGameMode)
  8.         If GameMode.Contains("war") Then
  9.             LabelItem7.Text = "GameMode:" + " Team Deathmatch |"
  10.         ElseIf GameMode.Contains("dm") Then
  11.             LabelItem7.Text = "GameMode:" + " Free for All |"
  12.         ElseIf GameMode.Contains("gun") Then
  13.             LabelItem7.Text = "GameMode:" + " Gun game |"
  14.         ElseIf GameMode.Contains("sd") Then
  15.             LabelItem7.Text = "GameMode:" + " Search and Destroy |"
  16.         ElseIf GameMode.Contains("dom") Then
  17.             LabelItem7.Text = "GameMode:" + " Domination |"
  18.         ElseIf GameMode.Contains("conf") Then
  19.             LabelItem7.Text = "GameMode:" + " Kill Confirmed |"
  20.         ElseIf GameMode.Contains("sr") Then
  21.             LabelItem7.Text = "GameMode:" + " Search and Rescue |"
  22.         ElseIf GameMode.Contains("grind") Then
  23.             LabelItem7.Text = "GameMode:" + " Grind |"
  24.         ElseIf GameMode.Contains("blitz") Then
  25.             LabelItem7.Text = "GameMode:" + " Blitz |"
  26.         ElseIf GameMode.Contains("cranked") Then
  27.             LabelItem7.Text = "GameMode:" + " Cranked |"
  28.         ElseIf GameMode.Contains("infect") Then
  29.             LabelItem7.Text = "GameMode:" + " Infected |"
  30.         ElseIf GameMode.Contains("sotf") Then
  31.             LabelItem7.Text = "GameMode:" + " Hunted |"
  32.         ElseIf GameMode.Contains("dem") Then
  33.             LabelItem7.Text = "GameMode:" + " Demolition |"
  34.         ElseIf GameMode.Contains("horde") Then
  35.             LabelItem7.Text = "GameMode:" + " Safeguard |"
  36.         ElseIf GameMode.Contains("sotf_ffa") Then
  37.             LabelItem7.Text = "GameMode:" + " Hunted FFA |"
  38.         Else
  39.             LabelItem7.Text = "GameMode:" + " Not in game |"
  40.         End If
  41.         Dim getMapName As Byte() = New Byte(16) {}
  42.         PS3.GetMemory(&H145E810, getMapName)
  43.         Dim MapName As String = Encoding.ASCII.GetString(getMapName)
  44.         If MapName.Contains("mp_prisonbreak") Then
  45.             LabelItem6.Text = "    | Map:" + " Prison Break |"
  46.         ElseIf MapName.Contains("mp_dart") Then
  47.             LabelItem6.Text = "    | Map:" + " Octane |"
  48.         ElseIf MapName.Contains("mp_lonestar") Then
  49.             LabelItem6.Text = "    | Map:" + " Tremor |"
  50.         ElseIf MapName.Contains("mp_frag") Then
  51.             LabelItem6.Text = "    | Map:" + " Freight |"
  52.         ElseIf MapName.Contains("mp_snow") Then
  53.             LabelItem6.Text = "    | Map:" + " Whiteout |"
  54.         ElseIf MapName.Contains("mp_fahrenheit") Then
  55.             LabelItem6.Text = "    | Map:" + " Stormfront |"
  56.         ElseIf MapName.Contains("mp_hasima") Then
  57.             LabelItem6.Text = "    | Map:" + " Siege |"
  58.         ElseIf MapName.Contains("mp_warhawk") Then
  59.             LabelItem6.Text = "    | Map:" + " Warhawk |"
  60.         ElseIf MapName.Contains("mp_sovereign") Then
  61.             LabelItem6.Text = "    | Map:" + " Sovereign |"
  62.         ElseIf MapName.Contains("mp_zebra") Then
  63.             LabelItem6.Text = "    | Map:" + " Overlord |"
  64.         ElseIf MapName.Contains("mp_skeleton") Then
  65.             LabelItem6.Text = "    | Map:" + " Stonehaven |"
  66.         ElseIf MapName.Contains("mp_chasm") Then
  67.             LabelItem6.Text = "    | Map:" + " Chasm |"
  68.         ElseIf MapName.Contains("mp_flooded") Then
  69.             LabelItem6.Text = "    | Map:" + " Flooded |"
  70.         ElseIf MapName.Contains("mp_strikezone") Then
  71.             LabelItem6.Text = "    | Map:" + " Strikezone |"
  72.         ElseIf MapName.Contains("mp_fall") Then
  73.             LabelItem6.Text = "    | Map:" + " Free Fall |"
  74.         Else
  75.             LabelItem6.Text = "    | Map:" + " ? |"
  76.         End If
  77.         Getmapnameandgamemode.Start()
  78.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement