Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace GalaxyRpLauncher
- {
- public partial class Launcher : Form
- {
- public Launcher()
- {
- InitializeComponent();
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- }
- //Ejecutar SAMP.
- private void button1_Click(object sender, EventArgs e)
- {
- System.Diagnostics.Process.Start(@"samp://servidor.southcenter.es:7777");
- Application.Exit();
- }
- //Botón de Salida.
- private void Salida_Click(object sender, EventArgs e)
- {
- Application.Exit();
- }
- //Botón de Buscar.
- public static FolderBrowserDialog fbd = new FolderBrowserDialog();
- public void Searcher_Click(object sender, EventArgs e)
- {
- fbd.Description = "Selecciona la carpeta de tu GTA con SA:MP.";
- if (fbd.ShowDialog() == DialogResult.OK) ;
- {
- ShowDir.Text = (fbd.SelectedPath);
- }
- }
- //Texto path.
- private void ShowDir_TextChanged(object sender, EventArgs e)
- {
- Processer.Enabled = true;
- }
- //Botón de minimizar.
- private void MinimizeClick(object sender, EventArgs e)
- {
- this.WindowState = FormWindowState.Minimized;
- }
- //Preocesador de la carpeta.
- public void Processer_Click(object sender, EventArgs e)
- {
- 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";
- string[] filePaths = Directory.GetFiles("" + fbd.SelectedPath);
- // Lectora del Return:
- foreach (string file in filePaths)
- {
- switch (Path.GetFileName(file))
- {
- case "Archivo Malicioso.txt":
- MessageBox.Show("" + ErrorCheater, "Error 0x81C2ER");
- break;
- default:
- Ejecutar.Enabled = true;
- break;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement