Master
Uzman Üye
Textbox ve buton ekleyin gerekli tasariminizi yapin..
buton1 kodlari;;
string ServerIP = "51.254.139.153:7777 ";
string GTAPath = Registry.CurrentUser.OpenSubKey(@"Software\\SAMP").GetValue("gta_sa_exe").ToString();
GTAPath = GTAPath.Substring(0, GTAPath.LastIndexOf(@"\") + 1);
string[] ImaCheat1 = Directory.GetDirectories(GTAPath, "d3d9.dll");
string[] ImaCheat2 = Directory.GetFiles(GTAPath, "mod_sa");
string[] ImaCheat3 = Directory.GetFiles(GTAPath, "d3d9.dll");
string[] ImaCheat4 = Directory.GetFiles(GTAPath, "AntTweakerBar.dll");
string[] ImaCheat5 = Directory.GetDirectories(GTAPath, "test");
string[] ImaCheat6 = Directory.GetDirectories(GTAPath, "testt");
if (((ImaCheat1.Length > 0) || (ImaCheat2.Length > 0)) || ((ImaCheat3.Length > 0) || (ImaCheat4.Length > 0)))
{
MessageBox.Show("Cheat detected, You can delete it.", "Wallner Anti-Cheat", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else if ((ImaCheat5.Length > 0) || (ImaCheat6.Length > 0))
{
MessageBox.Show("Cheat detected, You can delete it.", "Wallner Anti-Cheat", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else
{
Registry.CurrentUser.OpenSubKey(@"Software\SAMP", true).SetValue("PlayerName", textBox1.Text);
Process.Start(GTAPath + "samp.exe", ServerIP);
Direk proje yapip verebilirim anlamayn kardeslerim icin..
buton1 kodlari;;
string ServerIP = "51.254.139.153:7777 ";
string GTAPath = Registry.CurrentUser.OpenSubKey(@"Software\\SAMP").GetValue("gta_sa_exe").ToString();
GTAPath = GTAPath.Substring(0, GTAPath.LastIndexOf(@"\") + 1);
string[] ImaCheat1 = Directory.GetDirectories(GTAPath, "d3d9.dll");
string[] ImaCheat2 = Directory.GetFiles(GTAPath, "mod_sa");
string[] ImaCheat3 = Directory.GetFiles(GTAPath, "d3d9.dll");
string[] ImaCheat4 = Directory.GetFiles(GTAPath, "AntTweakerBar.dll");
string[] ImaCheat5 = Directory.GetDirectories(GTAPath, "test");
string[] ImaCheat6 = Directory.GetDirectories(GTAPath, "testt");
if (((ImaCheat1.Length > 0) || (ImaCheat2.Length > 0)) || ((ImaCheat3.Length > 0) || (ImaCheat4.Length > 0)))
{
MessageBox.Show("Cheat detected, You can delete it.", "Wallner Anti-Cheat", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else if ((ImaCheat5.Length > 0) || (ImaCheat6.Length > 0))
{
MessageBox.Show("Cheat detected, You can delete it.", "Wallner Anti-Cheat", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else
{
Registry.CurrentUser.OpenSubKey(@"Software\SAMP", true).SetValue("PlayerName", textBox1.Text);
Process.Start(GTAPath + "samp.exe", ServerIP);
Post automatically merged:
Direk proje yapip verebilirim anlamayn kardeslerim icin..