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

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

#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: 27)



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 6,556 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 7,671 11-08-2013, 19:13
Last Post: clemi555
  Our Level Fastfile is Different from the Server. CheeseToast 6 15,576 11-03-2013, 17:52
Last Post: CheeseToast
  Dedicated Server External (public) IP Nerus 3 9,598 11-02-2013, 14:16
Last Post: Casper
  MW3 Server Version superg1973 7 17,541 10-28-2013, 01:15
Last Post: kotyra972
  Help Modifying plugin maverigh 5 7,713 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 8,379 10-19-2013, 06:59
Last Post: iRoNinja
  Help how to turn off map in dedicated server pero123 8 9,638 10-15-2013, 19:00
Last Post: Nekochan
  Issue with server addon and NAT dimitrifrom31 3 8,196 10-08-2013, 18:11
Last Post: iRoNinja
  [Release] CS addon for MW2(Sounds,show damage) Fl0w_.JACKDAN 1 6,346 09-29-2013, 19:46
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

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