Thread Rating:
  • 3 Vote(s) - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resize Plugin
#1
Basically a plugin that sets the window style to resize
tl;dr it mw3 server console go resize yay

Made it (in 5 minutes) because people were complaining @ http://www.itsmods.com/forum/Thread-hey-...nsole.html

CSHARP Code
  1. public class ServerResizer : CPlugin
  2. {
  3. #region Signatures
  4. [DllImport("user32.dll")]
  5. static extern int SetWindowLong(IntPtr hWnd, int nIndex, long dwNewLong);
  6. #endregion
  7.  
  8. public unsafe override void OnServerLoad()
  9. {
  10. try
  11. {
  12. ServerPrint("MW3ServerResize by jariz");
  13. SetWindowLong(*(IntPtr*)0x5933A50, -16, 0x94CF0000L);
  14. }
  15. catch (Exception z) { ServerPrint("Failed: " + z.ToString()); }
  16. }
  17. }


Attached Files
.zip   MW3ServerResize2.zip (Size: 1.99 KB / Downloads: 40)
Reply

#2
Why not just add resizability to the Window but instead force another size maybe nobody wants and use static offsets?
Reply

#3
ok well, improve it if you've got a problem with it. Troll
also static pointers work fine. i use it for playermanager as well and it works perfectly. If you're going to search for the window you'll have problems when for example other servers are running on the same computer
Reply

#4
Okay @SuperNovaAO
Made it resizable instead of fullscreen
Reply

#5
thanks
[Image: c2ship5_sig.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 4,194 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 4,786 11-08-2013, 19:13
Last Post: clemi555
  [Release] Bunker Plugin 1.3 archit 68 41,929 10-30-2013, 11:59
Last Post: clacki
  Help Modifying plugin maverigh 5 5,724 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 5,240 10-19-2013, 06:59
Last Post: iRoNinja
  [Release] Yurio Map Plugin Yurio 101 62,827 09-26-2013, 13:38
Last Post: First_Semyon
Brick [Release] v1.1 ChangeMap/NextMap Plugin without any configuration milchshake 23 18,763 09-23-2013, 13:18
Last Post: SgtLegend
  Help !say Plugin (like the !say from GodPlugin) Hallla 0 2,727 09-13-2013, 09:31
Last Post: Hallla
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,476 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
  Search Plugin Fluid Killcam N3xT_974 1 3,084 09-10-2013, 20:27
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

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