Подпишитесь на наш Telegram-канал, чтобы всегда быть в курсе важных обновлений! Перейти

Вопрос Консоль спам

вот легкий фикс ошибок связанных с API, просто скомпиль:
C#:
Expand Collapse Copy
using System;
using System.IO;

namespace API_FIX
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Write path to ot/scripts folder");
            Console.WriteLine("For Example:");
            Console.WriteLine(@"C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\ot\scripts");
            string path = Console.ReadLine();
            string[] files = Directory.GetFiles(path, "*.js");
            foreach (var file in files)
            {
                string text = File.ReadAllText(file);
                text = text.Replace("Global.Tickcount", "Globals.Tickcount");
                text = text.Replace("Global.Tickrate", "Globals.Tickrate");
                text = text.Replace("Global.TickInterval", "Globals.TickInterval");
                text = text.Replace("Global.Curtime", "Globals.Curtime");
                text = text.Replace("Global.Realtime", "Globals.Realtime");
                text = text.Replace("Global.Frametime", "Globals.Frametime");
                text = text.Replace("Global.Play(instead of PlaySound)", "Sound.Play(instead of PlaySound)");
                text = text.Replace("Global.RegisterCallback", "Cheat.RegisterCallback");
                text = text.Replace("Global.ExecuteCommand", "Cheat.ExecuteCommand");
                text = text.Replace("Global.FrameStage", "Cheat.FrameStage");
                text = text.Replace("Global.Print", "Cheat.Print");
                text = text.Replace("Global.PrintColor", "Cheat.PrintColor");
                text = text.Replace("Global.PrintChat", "Cheat.PrintChat");
                text = text.Replace("Global.Latency", "Local.Latency");
                text = text.Replace("Global.GetViewAngles", "Local.GetViewAngles");
                text = text.Replace("Global.SetViewAngles", "Local.SetViewAngles");
                text = text.Replace("Global.GetMapName", "World.GetMapName");
                text = text.Replace("Global.IsKeyPressed", "Input.IsKeyPressed");
                text = text.Replace("Global.GetCursorPosition", "Input.GetCursorPosition");
                text = text.Replace("Global.GetScreenSize", "Render.GetScreenSize");
                File.WriteAllText(file, text);
            }
        }
    }
}
кто не умеет компилить держите в курсе
 
Назад
Сверху Снизу