OldSchoolHack

Register / Login English

User Search: TreffNix

Search-Information
TreffNix
Threads
Thread Forum Last Post Posts Views
icon

Go to first new post [MW3] Server Addons [Update 08.02.2012] Posted on: Tue 24. Jan 2012, 20:10

TreffNix

preview Preview

Go To Post

Hi people, this is my first shit coded-compiled EVER. This is not much useful, but im happy releasing something
Also report bugs and   +rep   will help my reputation
EDIT: YOU NEED THE Pozzuh's ADMIN PLUGIN OR ALL PEOPLE WILL BE ABLE TO CHANGE IT
New version now out! Use !setupxp at the first time you use this version!
Usage:
TEXT Code:
  1.  
  2. !setupxp <= Use this at first time!!!
  3. !xp [Number Optional] <= XP Per Kill
  4. !hxp [Number Optional] <= XP Per HeadShot
  5. !sxp [Number Optional] <= XP Per Suicide
  6.  
Example:

!hxp <= This will show how many XP do you get per HeadShot.
             
!sxp 1000 <= You will get 1000 XP per suicide.

Source Code:
TEXT Code:
  1.  
  2. using Addon;
  3. using System;
  4. using System.IO;
  5. namespace xpmanager
  6. {
  7. public class xpmanagerclass : CPlugin
  8. {
  9. public override void OnServerLoad()
  10. {
  11. ServerPrint("XP Manager V1.75 Loaded Successfully. Author: slipknotignacio");
  12. }
  13. public override ChatType OnSay(string Message, ServerClient Client)
  14. {
  15. if (Message.StartsWith("!setupxp"))
  16. {
  17. if (GetDvar("scr_dm_score_kill") == "")
  18. {
  19. string[] files = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.cfg");
  20. string Path = Directory.GetCurrentDirectory() + "/admin/server.cfg";
  21. foreach (string file in files)
  22. if (file.ToLower().EndsWith("server.cfg"))
  23. Path = file;
  24. string text = File.ReadAllText(Path) +
  25. "\nseta scr_dm_score_kill \"100\"";
  26. File.WriteAllText(Path, text);
  27. TellClient(Client.ClientNum, "Kill XP fixed. You need to restart the map.", true);
  28. }
  29. else
  30. {
  31. TellClient(Client.ClientNum, "You dont need to setup Kill XP. Its OK.", true);
  32. }
  33. if (GetDvar("scr_dm_score_headshot") == "")
  34. {
  35. string[] files = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.cfg");
  36. string Path = Directory.GetCurrentDirectory() + "/admin/server.cfg";
  37. foreach (string file in files)
  38. if (file.ToLower().EndsWith("server.cfg"))
  39. Path = file;
  40. string text = File.ReadAllText(Path) +
  41. "\nseta scr_dm_score_headshot \"100\"";
  42. File.WriteAllText(Path, text);
  43. TellClient(Client.ClientNum, "HeadShot XP fixed. You need to restart the map.", true);
  44. }
  45. else
  46. {
  47. TellClient(Client.ClientNum, "You dont need to setup HeadShot XP. Its OK.", true);
  48. }
  49. if (GetDvar("scr_dm_score_suicide") == "")
  50. {
  51. string[] files = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.cfg");
  52. string Path = Directory.GetCurrentDirectory() + "/admin/server.cfg";
  53. foreach (string file in files)
  54. if (file.ToLower().EndsWith("server.cfg"))
  55. Path = file;
  56. string text = File.ReadAllText(Path) +
  57. "\nseta scr_dm_score_suicide \"0\"";
  58. File.WriteAllText(Path, text);
  59. TellClient(Client.ClientNum, "Suicide XP fixed. You need to restart the map.", true);
  60. }
  61. else
  62. {
  63. TellClient(Client.ClientNum, "You dont need to setup Suicide XP. Its OK.", true);
  64. }
  65. return ChatType.ChatNone;
  66. }
  67. string lowMsg = Message.ToLower();
  68. if (lowMsg.StartsWith("!xp"))
  69. {
  70. string[] splitMsg = lowMsg.Split(' ');
  71. String xp = GetDvar("scr_dm_score_kill");
  72. if (splitMsg.Length == 1)
  73. TellClient(Client.ClientNum, "^1Your Current Kill XP Is: " + xp, true);
  74. else
  75. {
  76. try
  77. {
  78. int NewXPValue = Convert.ToInt32(splitMsg[1]);
  79. string qxp = NewXPValue.ToString();
  80. SetDvar("scr_dm_score_kill", qxp);
  81. TellClient(Client.ClientNum, "^1Kill XP Changed To: " + NewXPValue, true);
  82. }
  83. catch (Exception e)
  84. {
  85. TellClient(Client.ClientNum, "^1Invalid Kill XP Value!", true);
  86. }
  87. }
  88. return ChatType.ChatNone;
  89. }
  90.  
  91. if (lowMsg.StartsWith("!hxp"))
  92. {
  93. string[] splitMsg = lowMsg.Split(' ');
  94. String hxp = GetDvar("scr_dm_score_headshot");
  95. if (splitMsg.Length == 1)
  96. TellClient(Client.ClientNum, "^1Your Current HeadShot XP Is: " + hxp, true);
  97. else
  98. {
  99. try
  100. {
  101. int NewHXPValue = Convert.ToInt32(splitMsg[1]);
  102. string qhxp = NewHXPValue.ToString();
  103. SetDvar("scr_dm_score_headshot", qhxp);
  104. TellClient(Client.ClientNum, "^1HeadShot XP Changed To: " + NewHXPValue, true);
  105. }
  106. catch (Exception e)
  107. {
  108. TellClient(Client.ClientNum, "^1Invalid HeadShot XP Value!", true);
  109. }
  110. }
  111. return ChatType.ChatNone;
  112. }
  113.  
  114. if (lowMsg.StartsWith("!sxp"))
  115. {
  116. string[] splitMsg = lowMsg.Split(' ');
  117. String sxp = GetDvar("scr_dm_score_suicide");
  118. if (splitMsg.Length == 1)
  119. TellClient(Client.ClientNum, "^1Your Current Suicide XP Is: " + sxp, true);
  120. else
  121. {
  122. try
  123. {
  124. int NewSuicideXPValue = Convert.ToInt32(splitMsg[1]);
  125. string qsxp = NewSuicideXPValue.ToString();
  126. SetDvar("scr_dm_score_suicide", qsxp);
  127. TellClient(Client.ClientNum, "^1Suicide XP Changed To: " + NewSuicideXPValue, true);
  128. }
  129. catch (Exception e)
  130. {
  131. TellClient(Client.ClientNum, "^1Invalid Suicide XP Value!", true);
  132. }
  133. }
  134. return ChatType.ChatNone;
  135. }
  136. return ChatType.ChatContinue;
  137. }
  138. }
  139. }
  140.  

Changelog V1.75
TEXT Code:
  1.  
  2. Fixed major bug when the commands doesnt work if you dont have already set the values in your server.cfg
  3. Code optimized
  4.  

Changelog V1.00
TEXT Code:
  1.  
  2. Initial Release
  3.  

Credits:
Me => Obvious
Users of ItsMods => To Releasing their source code and I studied it
Pozzuh and iAegle => For the big help

Virus Scan: Only registered and activated users can see links.

MD5: 9AB2204C6BBDAED70E87275A7F265764

Call of Duty: Modern Warfare 3

Mon 2. Jun 2014, 00:12

by clack Go to last post
17 13727
icon

Go to first new post [MW3] Server Addons [Update 08.02.2012] Posted on: Tue 24. Jan 2012, 20:10

TreffNix

preview Preview

Go To Post

kopier mal mit bitte den kompletten code von deinem dedi server
Call of Duty: Modern Warfare 3

Mon 2. Jun 2014, 00:12

by clack Go to last post
17 13727
icon

Go to first new post [MW3] Server Addons [Update 08.02.2012] Posted on: Tue 24. Jan 2012, 20:10

TreffNix

preview Preview

Go To Post

Mit diesem tool geht es ganz einfach

I made fine ( useless ) my first program, which allowes you make plugins easier ( also who wants to make plugins )


How to use:
1) Open program
2) Wait untill checking will done
3) Type Plugin name ( with .dll )
4) BUG-FIX: Choose all events, then uncheck all ....
5) Choose event on which you want to do stuff
6) You can use example "chat" thing, or Press "Addon functions" and rewrite them ( i will add auto-rewriting in next version )
7) When you wrote code, press "Generate C# Code"
8) Wait 3 secs
9) Press "Compile!"
10) Check program's folder, you will see .dll file.... if not - you made mistake in code
In next version i will fix that bug.

Release Log:
Quote

V2c Features:
* Added function "Post on pastebin" ( thanks to @iAegle for code)
* Added function "View in fullscreen" (thanks to @iAegle again )
* Added official page ( Nukem's )
* Sorted menus
* Fixed checking
* New icon
* and more

V2 Features:
* Added C# Text Style
* Fixed 'Check on update' thing
* Now you can save files without errors, also in .cs file
* Easy to work with files
* Some help moved to 'Edit' menu

V1 Features:
* Plugin Compiling
* Fine Interface
* Mini-Help
* Fast opening/closing/compiling
* Server Addon Cmd list
* Example Codes
* Checking files on start
* Easy to use
* Save codes ( .pcode )
* Status Bar
* Checking for updates
* Special combinations! Check all, then uncheck all to get multiple code ( uuhm, can't explain.... bad english )


Video:


http://roflsaurus.com/users/public/j20704wrars175.png

What i will add:
* Automaticly code ( Now you need to rewrite some codes )
* Many other things!


Credits:
@Se7en - Creator
Google - C# Tutorials
Thanks to:
@master131 - .dll compiling thing
@jariz and @nukem for C# help

Download:
http://www.mediafire.com/download.php?meyx345t9llivco
Call of Duty: Modern Warfare 3

Mon 2. Jun 2014, 00:12

by clack Go to last post
17 13727
icon

Go to first new post [MW3] Server Addons [Update 08.02.2012] Posted on: Tue 24. Jan 2012, 20:10

TreffNix

preview Preview

Go To Post

Habe das Problem gefunden du hast die Version 1.5 und die geht noch nicht richtig nehme die alte Steam Version 1.4.382 glaub da geht's eibandfrei.
Call of Duty: Modern Warfare 3

Mon 2. Jun 2014, 00:12

by clack Go to last post
17 13727
icon

Go to first new post [MW3] Server Addons [Update 08.02.2012] Posted on: Tue 24. Jan 2012, 20:10

TreffNix

preview Preview

Go To Post

[align=center]UPDATED[/align]
MW3 Addon Plugin Pack 1

This was a pack based on @jariz code, I recreated(recoded) this pack for the newest version of MW3 server addon :awesome:


How to install?
Copy the DLL to MW3 Server\plugins

Sourcecode
  1. This code is supposed to be used to help you start creating your own plugin, so re-rereleasing any of this code without a significant change is strictly forbidden
  2. When used, my credits must be included
  3. Have fun coding!


Requirements


This pack includes
  • FOV
    Changes FOV and FOVscale for every client in the server,
    fov defaults to 80, fovscale to 1.0
    Add this to addon\sv_config.ini in order to use a custom value for the fov amount:
    TEXT Code:
    1.  
    2. [FOV]
    3. fov=80
    4. fovscale=1.125
    5.  
    Where '80' is your amount of FOV and '1.125' your FOVscale offcourse
  • Welcomer
    Says 'Everybody welcome PLAYERNAME to the server!'
    Don't know how it's useful, just makes your server looks awesome i think
  • PlayerLog
    Logs all players who connect to the server in addon\logs\player.log
    It logs: Client ID, Name, XUID and Ping (at time of connection)
    Useful if you want to report someone or just find out who connected to your server.


Credits
-@Tylerd86(Coding)
- @jariz (Orginal codes and coding)
- @Nukem (Addon)

Plugin source code
Spoiler

Welcomer
TEXT Code:
  1. using System;
  2. using Addon;
  3.  
  4. namespace plugin_test
  5. {
  6. public class plugin_test : CPlugin
  7. {
  8. public override void OnServerLoad()
  9. {
  10. ServerPrint("Welcomer plugin by Tylerd86 loaded!");
  11. }
  12.  
  13. public override void OnPlayerConnect(ServerClient Client)
  14. {
  15. ServerSay("^7Welcomer: ^2Everyone welcome ^3" + Client.Name + " ^2to the server!", true);
  16. }
  17. }
  18. }
Fov
TEXT Code:
  1. using System;
  2. using Addon;
  3.  
  4. namespace fov
  5. {
  6. public class fov : CPlugin
  7. {
  8. public override void OnServerLoad()
  9. {
  10. ServerPrint("Fov plugin loaded! by Tylerd86 & JariZ");
  11. }
  12.  
  13. public override void OnPlayerConnect(ServerClient Client)
  14. {
  15. SetClientDvar(Client.ClientNum, string.Format("cg_fov \"{0}\"", GetServerCFG("FOV", "fov", "80")));
  16. SetClientDvar(Client.ClientNum, string.Format("cg_fovscale \"{0}\"", GetServerCFG("FOV", "fovscale", "1.125")));
  17. }
  18. }
  19. }
PlayerLog
TEXT Code:
  1. using System;
  2. using Addon;
  3. using System.IO;
  4.  
  5. namespace PlayerLog
  6. {
  7. public class PlayerLog : CPlugin
  8. {
  9. string logpath = "addon\\logs\\player.log";
  10. public override void OnServerLoad()
  11. {
  12. ServerPrint("PlayerLog loaded! by Tylerd86 & JariZ :D");
  13. }
  14.  
  15. void writeCollumns()
  16. {
  17. StreamWriter rw = new StreamWriter(logpath, false);
  18. rw.WriteLine("NUM NAME XUID RATE PING");
  19. rw.Close();
  20. }
  21.  
  22. public override void OnPlayerConnect(ServerClient Client)
  23. {
  24. try
  25. {
  26. if (File.Exists(logpath))
  27. {
  28. writeCollumns();
  29. if (File.ReadAllText(logpath) == string.Empty)
  30. writeCollumns();
  31. }
  32. StreamWriter sr = new StreamWriter(logpath, true);
  33. sr.WriteLine(Client.ClientNum + " " + Client.Name + " " + Client.XUID + " " + Client.Rate + " " + Client.Ping);
  34. sr.Close();
  35. }
  36. catch (Exception z) { ServerPrint("[PLAYERLOG] " + z.ToString()); }
  37. }
  38. }
  39. }

Call of Duty: Modern Warfare 3

Mon 2. Jun 2014, 00:12

by clack Go to last post
17 13727
Downloads
Texture hack v1.0 by Archangel 64Bit

Texture hack v1.0 by Archangel 64Bit

Texture hack v1.0 by Archangel It is his first texture hack release for modern warfare 3! VAC Status: Undetected as if 16 november 2011 Features Colored players - Choose between the colors: Blue, cyan, green, purple, pink, yellow and red! - Snipers are colored separately. Colored explosives/sentry gun
29. Nov 2011
02:51
Texture hack v1.0 by Archangel 32Bit

Texture hack v1.0 by Archangel 32Bit

Texture hack v1.0 by Archangel It is his first texture hack release for modern warfare 3! VAC Status: Undetected as if 16 november 2011 Features Colored players - Choose between the colors: Blue, cyan, green, purple, pink, yellow and red! - Snipers are colored separately. Colored explosives/sentry gun
29. Nov 2011
02:49
VacChaos v. 2.15

VacChaos v. 2.15

VAC Chaos v2.14 for Modern Warfare 2 patch v1.2.208 by AgentGOD ---------------------------- Description: - Allows you to fully disable VAC (Valve Anti-Cheat) in Modern Warfare 2. - Unlocks hidden window-based developer console in a non-intrusive way. - Unlocks dvars for changing and/or querying. -
2. Aug 2010
16:09
SteamLoader v1.21 VAC Bypass

SteamLoader v1.21 VAC Bypass

Zu SteamLoader v1.21: Es ist ein programm wo einen VAC2 bypass injected für mw2 und so kann man gechillt mod eröffnen (bei einer geringen chance gebannt zu werden). Credits: Supernova How To: Als erstes wenn steam läuft beenden und die SteamLoader.exe ausführen und einfach warten kann ab und zu ein
21. Jul 2010
23:25
VacChaos v. 2.11

VacChaos v. 2.11

VAC Chaos v2.11 for Modern Warfare 2 patch v1.2.208 by AgentGOD ---------------------------- Home Page: http://www.ultimate-filez.com Donation : http://www.ultimate-filez.com/?page=donate Description: - Allows you to fully disable VAC (Valve Anti-Cheat) in Modern Warfare 2. - Unlocks hidden window-based
10. Jul 2010
19:44