Advertisement
Guest User

Untitled

a guest
Jan 17th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. using System;
  2. using System.IO;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11.  
  12. namespace GalaxyRpLauncher
  13. {
  14. public partial class Launcher : Form
  15. {
  16. public Launcher()
  17. {
  18. InitializeComponent();
  19. }
  20.  
  21. private void Form1_Load(object sender, EventArgs e)
  22. {
  23.  
  24. }
  25.  
  26. //Ejecutar SAMP.
  27. private void button1_Click(object sender, EventArgs e)
  28. {
  29. System.Diagnostics.Process.Start(@"samp://servidor.southcenter.es:7777");
  30. Application.Exit();
  31.  
  32. }
  33. //Botón de Salida.
  34. private void Salida_Click(object sender, EventArgs e)
  35. {
  36. Application.Exit();
  37. }
  38. //Botón de Buscar.
  39. public static FolderBrowserDialog fbd = new FolderBrowserDialog();
  40. public void Searcher_Click(object sender, EventArgs e)
  41. {
  42. fbd.Description = "Selecciona la carpeta de tu GTA con SA:MP.";
  43. if (fbd.ShowDialog() == DialogResult.OK) ;
  44. {
  45. ShowDir.Text = (fbd.SelectedPath);
  46. }
  47.  
  48. }
  49.  
  50. //Texto path.
  51. private void ShowDir_TextChanged(object sender, EventArgs e)
  52. {
  53. Processer.Enabled = true;
  54. }
  55. //Botón de minimizar.
  56. private void MinimizeClick(object sender, EventArgs e)
  57. {
  58. this.WindowState = FormWindowState.Minimized;
  59. }
  60. //Preocesador de la carpeta.
  61. public void Processer_Click(object sender, EventArgs e)
  62. {
  63. string ErrorCheater = "El juego ha tenido un problema al ejecutarse por favor enviar esta imagen lo más rápido posible a los administradores para que te puedan dar una solución a este problema.\n > Contacto: https://discordapp.com/invite/fPV3hPY";
  64. string[] filePaths = Directory.GetFiles("" + fbd.SelectedPath);
  65. // Lectora del Return:
  66. foreach (string file in filePaths)
  67. {
  68. switch (Path.GetFileName(file))
  69. {
  70. case "Archivo Malicioso.txt":
  71. MessageBox.Show("" + ErrorCheater, "Error 0x81C2ER");
  72. break;
  73.  
  74. default:
  75. Ejecutar.Enabled = true;
  76. break;
  77. }
  78. }
  79.  
  80. }
  81.  
  82. }
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement