Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private async void startArma()
- {
- try
- {
- playButton.Text = "Game Starting ...";
- if (serverLockPass == null)
- {
- if (launchOptions == null || launchOptions.Length == 0)
- {
- if (serverPass == null)
- Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp);
- else
- Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverPass);
- }
- else
- {
- if (serverPass == null)
- Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " " + launchOptions);
- else
- Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverPass + " " + launchOptions);
- }
- }
- else
- {
- if (launchOptions == null || launchOptions.Length == 0)
- Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverLockPass);
- else
- Process.Start(armaDirectory + "/arma3battleye.exe", "0 1 -mod=" + modsPackName + " -nopause -connect=" + serverArmaIp + " -password=" + serverLockPass + " " + launchOptions);
- }
- await Task.Delay(17000);
- checkUpdate();
- }catch (Exception)
- {
- playButton.Text = "Arma 3 Not Found";
- checkArmaDirectory(armaDirectory);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement