Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. private async void startArma()
  2. {
  3. try
  4. {
  5. playButton.Text = "Game Starting ...";
  6. if (serverLockPass == null)
  7. {
  8. if (launchOptions == null || launchOptions.Length == 0)
  9. {
  10. if (serverPass == null)
  11. Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp);
  12. else
  13. Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverPass);
  14. }
  15. else
  16. {
  17. if (serverPass == null)
  18. Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " " + launchOptions);
  19. else
  20. Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverPass + " " + launchOptions);
  21. }
  22. }
  23. else
  24. {
  25. if (launchOptions == null || launchOptions.Length == 0)
  26. Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverLockPass);
  27. else
  28. Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverLockPass + " " + launchOptions);
  29. }
  30.  
  31. await Task.Delay(17000);
  32. checkUpdate();
  33. }catch (Exception)
  34. {
  35. playButton.Text = "Arma 3 Not Found";
  36. checkArmaDirectory(armaDirectory);
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement