예제 #1
0
 private void tm_connect_Tick(object sender, EventArgs e)
 {
     pgb_connect.Increment(1);
     if (pgb_connect.Value == 100)
     {
         Application.Exit();
     }
     else if (pgb_connect.Value == 1)
     {
         try
         {
             rp.connectFivem(@"127.0.0.1", "30120"); //แก้ไอพี FiveM ได้ตรงนี้
         }
         catch (Exception)
         {
             tm_connect.Stop();
             const string message = "FiveM.exe could not be found. Do you want to download it now? | ไม่พบ FiveM.exe คุณต้องการดาวน์โหลดทันทีหรือไม่";
             const string caption = "Fujino N's!";
             var          result  = MessageBox.Show(message, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Error);
             if (result == DialogResult.Yes)
             {
                 System.Diagnostics.Process.Start("https://fivem.net/");
                 Application.Exit();
             }
             else
             {
                 Application.Exit();
             }
         }
     }
     else if (pgb_connect.Value == 80)
     {
         rp.open(@"ts3server://127.0.0.1"); //แก้ไอพี TS3 ได้ตรงนี้
     }
 }
예제 #2
0
파일: Form1.cs 프로젝트: murayuki/LuncherRP
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     rp.closeFivem();
     rp.open("https://panel.fivemcode.com/tesekkurler.php"); //Bu kod internet sitesi açmak için örnek olarak eklenmiştir.
 }