Пример #1
0
 internal bool Affirmative()
 {
     if (Globals.IsTSBackupRequired)
     {
         if (Functions.IsPlayerPerformingPullover())
         {
             if (Utilities.IsLSPDFRPluginRunning("UltimateBackup"))
             {
                 UltimateBackupFuncs.RequestTrafficStop(1, "LocalPatrol");
                 Globals.IsTSBackupRequired = false;
                 GameFiber.SleepWhile(Functions.GetIsAudioEngineBusy, 100000);
                 Functions.PlayScannerAudioUsingPosition("10_4 BACKUP_REQUIRED", Game.LocalPlayer.Character.Position);
                 Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~10-4, Units Responding");
             }
             else
             {
                 Game.DisplayNotification("~r~" + Globals.PluginName + ": UltimateBackup is required for this feature.");
             }
         }
         else
         {
             Game.DisplayNotification("~r~" + Globals.PluginName + ": Traffic stop is not in progress.");
         }
     }
     return(true);
 }
Пример #2
0
 internal bool ShowMe10_23()
 {
     Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~Showing you 10-23 (Arrived on Scene)");
     GameFiber.SleepWhile(Functions.GetIsAudioEngineBusy, 100000);
     Functions.PlayScannerAudio("10_4");
     return(true);
 }
Пример #3
0
 internal bool ShowMe10_5()
 {
     Functions.SetPlayerAvailableForCalls(false);
     Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~Showing you 10-5 (Break)");
     GameFiber.SleepWhile(Functions.GetIsAudioEngineBusy, 100000);
     Functions.PlayScannerAudio("10_4");
     return(true);
 }
Пример #4
0
 internal bool Negative()
 {
     Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~10-4");
     GameFiber.SleepWhile(Functions.GetIsAudioEngineBusy, 100000);
     Functions.PlayScannerAudio("10_4 PROCEED_WITH_CAUTION");
     Globals.IsTSBackupRequired = false;
     return(true);
 }
Пример #5
0
 internal bool ShowMe10_41()
 {
     {
         Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~Showing you 10-41 (Beginning Duty)");
         GameFiber.SleepWhile(Functions.GetIsAudioEngineBusy, 100000);
         Functions.PlayScannerAudio("10_4");
         return(true);
     }
 }
 internal bool ShowMe10_11O1()
 {
     Functions.SetPlayerAvailableForCalls(false);
     Globals.IsTSBackupRequired = true;
     Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~Showing You 10-11 O1 (Traffic Stop Occupied Times 1)");
     Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~Is Backup Required?");
     GameFiber.SleepWhile(Functions.GetIsAudioEngineBusy, 100000);
     Functions.PlayScannerAudio("10_4 IS BACKUP_REQUIRED");
     return(true);
 }
Пример #7
0
 internal bool ShowMeCode5()
 {
     if (Utilities.IsLSPDFRPluginRunning("UltimateBackup"))
     {
         UltimateBackupFuncs.RequestTrafficStop(2, "LocalPatrol");
         GameFiber.SleepWhile(Functions.GetIsAudioEngineBusy, 100000);
         Functions.PlayScannerAudioUsingPosition("10_4 BACKUP_REQUIRED", Game.LocalPlayer.Character.Position);
         Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~Showing you Code 5 (Felony Stop)");
     }
     else
     {
         Game.DisplayNotification("~r~" + Globals.PluginName + ": UltimateBackup is required for this feature.");
     }
     return(true);
 }
Пример #8
0
 internal bool ShowMe10_99()
 {
     if (Utilities.IsLSPDFRPluginRunning("UltimateBackup"))
     {
         UltimateBackupFuncs.PanicUnits();
         GameFiber.SleepWhile(Functions.GetIsAudioEngineBusy, 100000);
         Functions.PlayScannerAudioUsingPosition("PANIC_BUTTON BACKUP_REQUIRED", Game.LocalPlayer.Character.Position);
         Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~All available units respond code 3");
     }
     else
     {
         Game.DisplayNotification("~r~" + Globals.PluginName + ": UltimateBackup is required for this feature.");
     }
     return(true);
 }
Пример #9
0
 internal bool Requesting10_53()
 {
     if (Utilities.IsLSPDFRPluginRunning("UltimateBackup"))
     {
         UltimateBackupFuncs.RequestFireTruckUnit("Firetruck");
         Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~Dispatching Firetruck");
         GameFiber.SleepWhile(Functions.GetIsAudioEngineBusy, 100000);
         Functions.PlayScannerAudio("10_4");
     }
     else
     {
         Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~You Require Ultimate Backup for this Feature");
     }
     return(true);
 }
Пример #10
0
 internal bool ShowMe10_11O4()
 {
     Functions.SetPlayerAvailableForCalls(false);
     Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~Showing You 10-11 O4 (Traffic Stop Occupied Times 4)");
     if (Utilities.IsLSPDFRPluginRunning("UltimateBackup"))
     {
         Controls.requestTrafficStopBackup(true, TrafficStopResponseType.Normal, "LocalPatrol");
         Globals.IsTSBackupRequired = false;
         GameFiber.SleepWhile(Functions.GetIsAudioEngineBusy, 100000);
         Functions.PlayScannerAudioUsingPosition("10_4 BACKUP_REQUIRED PROCEED_WITH_CAUTION", Game.LocalPlayer.Character.Position);
         Game.DisplayNotification("~r~" + Globals.PluginName + ": ~w~10-4, Units Responding");
     }
     else
     {
         Game.DisplayNotification("~r~" + Globals.PluginName + ": UltimateBackup is required for this feature.");
     }
     return(true);
 }