Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plugin that show the process id of a server
#11
I know C and autoit and C# seem similar, i can try to make it, thanks for the suggestion

I'm reading this:
http://cod6hmod.itshax.com/mw3_addon/doc/#
http://www.itsmods.com/forum/Thread-How-...noobs.html
Reply

#12
CSHARP Code
  1. public override void OnServerLoad()
  2. {
  3. int ProcessID = System.Diagnostics.Process.GetCurrentProcess().Id;
  4. using (System.IO.TextWriter txt = System.IO.File.CreateText(@"HERE PATH\FILENAME"))
  5. txt.WriteLine(ProcessID.ToString());
  6. }
[Image: azuw.jpg]
Reply

#13
Thanks For help, i've created plugin and work very good.
This is my source:
Code:
using System;
using Addon;

namespace plugin_test
{
    public class Plugin : CPlugin
    {
        public override void OnServerLoad()
        {
            ServerPrint("Process ID to pid.txt\nAutore: Gio\nThanks to: zxz0O0\n");
            int ProcessID = System.Diagnostics.Process.GetCurrentProcess().Id;
            using (System.IO.TextWriter txt = System.IO.File.CreateText("plugins\\pid.txt"))
            txt.WriteLine(ProcessID.ToString());
        }
    }
}
It save the process ID in the plugin directory in file pid.txt

If zxz0O0 want a the server PM me and i give it to you for free for 30 day i can create you a MW3 original or MW3 Teknogods version server!
Thanks to all plugin maker, reading your code, i've created it!

With this plugin now you can use brainless.us ugcc version 1.52 to control the server hosted with teknoMW3


Attached Files
.zip   plugin_PID.zip (Size: 1.86 KB / Downloads: 7)
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Windows 8.1 Fix for MW3 Server Addon master131 16 18,222 09-29-2014, 23:08
Last Post: SuperNovaAO
Brick [Release] MW3 Server Administration Addon iRoNinja 5 9,020 11-10-2013, 15:46
Last Post: Casper
Exclamation Help cmdlist, dvarlist server crash Nerus 17 11,928 11-09-2013, 23:54
Last Post: Nerus
Wink Plugin with !ban !kick and !tampban clemi555 3 4,173 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 4,751 11-08-2013, 19:13
Last Post: clemi555
  Our Level Fastfile is Different from the Server. CheeseToast 6 11,331 11-03-2013, 17:52
Last Post: CheeseToast
  Dedicated Server External (public) IP Nerus 3 5,906 11-02-2013, 14:16
Last Post: Casper
  [Release] Bunker Plugin 1.3 archit 68 41,666 10-30-2013, 11:59
Last Post: clacki
  MW3 Server Version superg1973 7 12,762 10-28-2013, 01:15
Last Post: kotyra972
  Help Modifying plugin maverigh 5 5,676 10-19-2013, 10:29
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
8 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.