Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help for my plugin
#1
Hello , this is my first try to make a plugin for mw3, i have use the plugin maker v2.

I have try to makre possible to unlock the FPS capped at 91.
but my plugin wont work and i dont know why.
This is my code :

CSHARP Code
  1. using Addon;
  2. using System.Collections.Generic;
  3.  
  4. namespace myplugin_test
  5. {
  6. public class myplugin_test : CPlugin
  7. {
  8.  
  9. public override void OnServerLoad()
  10. {
  11. ServerPrint("\n Cap max fps Loaded \n AUTHOR: Ninja970");
  12. }
  13.  
  14. public override ChatType OnSay(string Message, ServerClient Client)
  15. {
  16. List<string> lines = new List<string>();
  17. if (Message.StartsWith("!commaxfpson"))
  18. {
  19.  
  20. if (Message.Substring(13) == "1")
  21. {
  22. SetClientDvar(Client.ClientNum, "com_maxfps \"180\"");
  23. TellClient(Client.ClientNum, "^3FPS Capped ON!", true);
  24. }
  25. else if (Message.Substring(13) == "0")
  26. {
  27. SetClientDvar(Client.ClientNum, "com_maxfps \"91\"");
  28. TellClient(Client.ClientNum, "^3FPS Capped OFF!", true);
  29. return ChatType.ChatContinue;
  30. }
  31.  
  32. }
  33. }


-- Moved to general discussion - @JariZ


Attached Files
.rar   MYFIRSTPLUGIN.rar (Size: 1.16 KB / Downloads: 11)
Reply

#2
use [code] tags
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#3
As I stated mutliple times you can not raise com_maxfps higher than 100.
[Image: azuw.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 4,135 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 4,714 11-08-2013, 19:13
Last Post: clemi555
  [Release] Bunker Plugin 1.3 archit 68 41,203 10-30-2013, 11:59
Last Post: clacki
  Help Modifying plugin maverigh 5 5,609 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 5,129 10-19-2013, 06:59
Last Post: iRoNinja
  [Release] Yurio Map Plugin Yurio 101 61,574 09-26-2013, 13:38
Last Post: First_Semyon
Brick [Release] v1.1 ChangeMap/NextMap Plugin without any configuration milchshake 23 18,436 09-23-2013, 13:18
Last Post: SgtLegend
  Help !say Plugin (like the !say from GodPlugin) Hallla 0 2,693 09-13-2013, 09:31
Last Post: Hallla
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 32,850 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks
  Search Plugin Fluid Killcam N3xT_974 1 3,040 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.