Esempio n. 1
0
        public MyInterceptor(Form1 form1)
            : base()
        {
            this.form     = form1;
            this.radar    = this.form.radar;
            this.settings = this.form.radarSettings.settings;

            Interceptor.AddPacketsToFilter(Packet.Rust.ConsoleCommand, Packet.Rust.ConsoleMessage);
            // Filter packets, you will only receive the packets defined in this function, remove this line to receive all packets
            Interceptor.ClientPackets = true;
            // Receive client packets, in this example you would receive both Server and Client Packets
            Interceptor.CommandPrefix = "RI.";
            // Command Prefix for "sv" command, in this example you could send a command to this program with "sv RI.randomValue 24" and receive OnCommand("randomValue 24")
            Interceptor.Start();
        }