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 :
-- Moved to general discussion - @JariZ
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
- using Addon;
- using System.Collections.Generic;
-
- namespace myplugin_test
- {
- public class myplugin_test : CPlugin
- {
-
- public override void OnServerLoad()
- {
- ServerPrint("\n Cap max fps Loaded \n AUTHOR: Ninja970");
- }
-
- public override ChatType OnSay(string Message, ServerClient Client)
- {
- if (Message.StartsWith("!commaxfpson"))
- {
-
- if (Message.Substring(13) == "1")
- {
- SetClientDvar(Client.ClientNum, "com_maxfps \"180\"");
- TellClient(Client.ClientNum, "^3FPS Capped ON!", true);
- }
- else if (Message.Substring(13) == "0")
- {
- SetClientDvar(Client.ClientNum, "com_maxfps \"91\"");
- TellClient(Client.ClientNum, "^3FPS Capped OFF!", true);
- return ChatType.ChatContinue;
- }
-
- }
- }
-- Moved to general discussion - @JariZ