Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Coded By BaSs_HaXoR
- //To Convert to VB just go here...http://www.developerfusion.com/tools/convert/csharp-to-vb/
- private void Getmapnameandgamemode_Tick(object sender, EventArgs e)
- {
- byte[] getGameMode = new byte[17];
- PS3.GetMemory(0x145E850, getGameMode);
- string GameMode = Encoding.ASCII.GetString(getGameMode);
- if (GameMode.Contains("war"))
- {
- LabelItem7.Text = "GameMode:" + " Team Deathmatch |";
- }
- else if (GameMode.Contains("gun"))
- {
- LabelItem7.Text = "GameMode:" + " Gun game |"
- }
- else if (GameMode.Contains("dm"))
- {
- LabelItem7.Text = "GameMode:" + " Free for All |";
- }
- else if (GameMode.Contains("sd"))
- {
- LabelItem7.Text = "GameMode:" + " Search and Destroy |";
- }
- else if (GameMode.Contains("dom"))
- {
- LabelItem7.Text = "GameMode:" + " Domination |";
- }
- else if (GameMode.Contains("conf"))
- {
- LabelItem7.Text = "GameMode:" + " Kill Confirmed |";
- }
- else if (GameMode.Contains("sr"))
- {
- LabelItem7.Text = "GameMode:" + " Search and Rescue |";
- }
- else if (GameMode.Contains("grind"))
- {
- LabelItem7.Text = "GameMode:" + " Grind |";
- }
- else if (GameMode.Contains("blitz"))
- {
- LabelItem7.Text = "GameMode:" + " Blitz |";
- }
- else if (GameMode.Contains("cranked"))
- {
- LabelItem7.Text = "GameMode:" + " Cranked |";
- }
- else if (GameMode.Contains("infect"))
- {
- LabelItem7.Text = "GameMode:" + " Infected |";
- }
- else if (GameMode.Contains("sotf"))
- {
- LabelItem7.Text = "GameMode:" + " Hunted |";
- }
- else if (GameMode.Contains("dem"))
- {
- LabelItem7.Text = "GameMode:" + " Demolition |";
- }
- else if (GameMode.Contains("horde"))
- {
- LabelItem7.Text = "GameMode:" + " Safeguard |";
- }
- else if (GameMode.Contains("sotf_ffa"))
- {
- LabelItem7.Text = "GameMode:" + " Hunted FFA |";
- }
- else
- {
- LabelItem7.Text = "GameMode:" + " Not in game |";
- }
- byte[] getMapName = new byte[17];
- PS3.GetMemory(0x145E810, getMapName);
- string MapName = Encoding.ASCII.GetString(getMapName);
- if (MapName.Contains("mp_prisonbreak"))
- {
- LabelItem6.Text = " | Map:" + " Prison Break |";
- }
- else if (MapName.Contains("mp_dart"))
- {
- LabelItem6.Text = " | Map:" + " Octane |";
- }
- else if (MapName.Contains("mp_lonestar"))
- {
- LabelItem6.Text = " | Map:" + " Tremor |";
- }
- else if (MapName.Contains("mp_frag"))
- {
- LabelItem6.Text = " | Map:" + " Freight |";
- }
- else if (MapName.Contains("mp_snow"))
- {
- LabelItem6.Text = " | Map:" + " Whiteout |";
- }
- else if (MapName.Contains("mp_fahrenheit"))
- {
- LabelItem6.Text = " | Map:" + " Stormfront |";
- }
- else if (MapName.Contains("mp_hasima"))
- {
- LabelItem6.Text = " | Map:" + " Siege |";
- }
- else if (MapName.Contains("mp_warhawk"))
- {
- LabelItem6.Text = " | Map:" + " Warhawk |";
- }
- else if (MapName.Contains("mp_sovereign"))
- {
- LabelItem6.Text = " | Map:" + " Sovereign |";
- }
- else if (MapName.Contains("mp_zebra"))
- {
- LabelItem6.Text = " | Map:" + " Overlord |";
- }
- else if (MapName.Contains("mp_skeleton"))
- {
- LabelItem6.Text = " | Map:" + " Stonehaven |";
- }
- else if (MapName.Contains("mp_chasm"))
- {
- LabelItem6.Text = " | Map:" + " Chasm |";
- }
- else if (MapName.Contains("mp_flooded"))
- {
- LabelItem6.Text = " | Map:" + " Flooded |";
- }
- else if (MapName.Contains("mp_strikezone"))
- {
- LabelItem6.Text = " | Map:" + " Strikezone |";
- }
- else if (MapName.Contains("mp_fall"))
- {
- LabelItem6.Text = " | Map:" + " Free Fall |";
- }
- else
- {
- LabelItem6.Text = " | Map:" + " ? |";
- }
- Getmapnameandgamemode.Start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement