Exemple #1
0
        static void Functions_OnOnDutyStateChanged(bool onDuty)
        {
            if (onDuty)
            {
                GameFiber.StartNew(delegate
                {
                    RegisterCallouts();
                    Game.Console.Print();
                    Game.Console.Print("=============================================== UnitedCallouts by sEbi3 ================================================");
                    Game.Console.Print();
                    Game.Console.Print("[LOG]: Callouts and settings were loaded successfully.");
                    Game.Console.Print("[LOG]: The config file was loaded successfully.");
                    Game.Console.Print("[VERSION]: Detected Version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString());
                    Game.Console.Print("[LOG]: Checking for a new UnitedCallouts version.");
                    Game.Console.Print();
                    Game.Console.Print("=============================================== UnitedCallouts by sEbi3 ================================================");
                    Game.Console.Print();

                    // You can find all textures/images in OpenIV
                    Game.DisplayNotification("web_lossantospolicedept", "web_lossantospolicedept", "UnitedCallouts", "~y~v" + Assembly.GetExecutingAssembly().GetName().Version.ToString() + " ~o~by sEbi3", "~b~successfully loaded!");
                    PluginCheck.isUpdateAvailable();

                    GameFiber.Wait(300);
                    if (Settings.HelpMessages)
                    {
                        Game.DisplayHelp("You can change all ~y~keys~w~ in the ~g~UnitedCallouts.ini~w~. Press ~b~" + Settings.EndCall + "~w~ to end a callout.", 5000);
                    }
                });
            }
        }
Exemple #2
0
        static void Functions_OnOnDutyStateChanged(bool onDuty)
        {
            if (onDuty)
            {
                GameFiber.StartNew(delegate
                {
                    RegisterCallouts();
                    Game.Console.Print();
                    Game.Console.Print("=============================================== UnitedCallouts by sEbi3 ================================================");
                    Game.Console.Print();
                    Game.Console.Print("[LOG]: Callouts and settings loaded succesfully.");
                    Game.Console.Print("[LOG]: The config file loaded succesfully.");
                    Game.Console.Print("[VERSION]: Detected Version:  " + Assembly.GetExecutingAssembly().GetName().Version.ToString());
                    Game.Console.Print("[LOG]: You are playing on the newest version.");
                    Game.Console.Print();
                    Game.Console.Print("=============================================== UnitedCallouts by sEbi3 ================================================");
                    Game.Console.Print();

                    Game.DisplayNotification(
                        "web_lossantospolicedept",                  // You can find all logos/images in OpenIV
                        "web_lossantospolicedept",                  // You can find all logos/images in OpenIV
                        "UnitedCallouts",                           // Title
                        "~y~v" + Assembly.GetExecutingAssembly().GetName().Version.ToString() +
                        " ~o~by sEbi3", "~b~successfully loaded!"); // Subtitle
                    PluginCheck.isUpdateAvailable();
                });
            }
        }