Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Need a plugin that hides all ! Admin commands
#1
can someone make a plugin that hides all ! admin commands in chat, for example when i type !yell all Hi the message shows on players hud and in chat also, i need a plugin that hides all chat commands that starts with !
Reply

#2
maybe blame the coder in question for being lazy and not hiding the chat.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#3
Maybe this will work. Compile this using Sailor Moons Plugin Maker.

CSHARP Code
  1. Using Addon;
  2.  
  3. public override ChatType OnSay(string Message, ServerClient Client)
  4. {
  5. if (Message.StartsWith("!"))
  6. {
  7. return ChatType.ChatNone;
  8. }
  9. return ChatType.ChatContinue;
  10. }


As I assume It may hide the cmds with !. Try and tell

I don't know if this will crash the server, anyway just have a try

(07-27-2013, 07:51)hillbilly Wrote: maybe blame the coder in question for being lazy and not hiding the chat.

LOL.....yeah, I have seen this in many plugins
Reply

#4
(07-27-2013, 08:24)Bandarigoda123 Wrote: Maybe this will work. Compile this using Sailor Moons Plugin Maker.

CSHARP Code
  1. Using Addon;
  2.  
  3. public override ChatType OnSay(string Message, ServerClient Client)
  4. {
  5. if (Message.StartsWith("!"))
  6. {
  7. return ChatType.ChatNone;
  8. }
  9. return ChatType.ChatContinue;
  10. }


As I assume It may hide the cmds with !. Try and tell

I don't know if this will crash the server, anyway just have a try

(07-27-2013, 07:51)hillbilly Wrote: maybe blame the coder in question for being lazy and not hiding the chat.

LOL.....yeah, I have seen this in many plugins

Cant Compile,There's a error:
Please check your code, error found!
Please compile this plugin for me.
Reply

#5
here, try it.


.zip   myplug.zip (Size: 1.74 KB / Downloads: 40)

LOL, the error might be that. Tongue

here the full one, forgot somethings.

CSHARP Code
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using Addon;
  5.  
  6. namespace Hide
  7. {
  8. public class Hide : CPlugin
  9. {
  10. public override void OnServerLoad()
  11. {
  12. ServerPrint("Hide Commands Plugin by SShattered Loaded");
  13. }
  14. public override ChatType OnSay(string Message, ServerClient Client)
  15. {
  16. if (Message.StartsWith("!"))
  17. {
  18. return ChatType.ChatNone;
  19. }
  20. return ChatType.ChatContinue;
  21. }
  22. }
  23. }
Reply

#6
(07-27-2013, 10:24)Bandarigoda123 Wrote: here, try it.



LOL, the error might be that. Tongue

here the full one, forgot somethings.

CSHARP Code
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using Addon;
  5.  
  6. namespace Hide
  7. {
  8. public class Hide : CPlugin
  9. {
  10. public override void OnServerLoad()
  11. {
  12. ServerPrint("Hide Commands Plugin by SShattered Loaded");
  13. }
  14. public override ChatType OnSay(string Message, ServerClient Client)
  15. {
  16. if (Message.StartsWith("!"))
  17. {
  18. return ChatType.ChatNone;
  19. }
  20. return ChatType.ChatContinue;
  21. }
  22. }
  23. }

My ! commands are not working xD please fix
Reply

#7
Of course your commands won't work, the code above will prevent anything starting with ! from been used, download the permissions plugin and use that.

http://www.itsmods.com/forum/Thread-Rele...lugin.html
I now host all my MW3 projects on my private GIT repo
Reply

#8
@Sylvester
Do as what @SgtLegend said.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink Plugin with !ban !kick and !tampban clemi555 3 4,161 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 4,744 11-08-2013, 19:13
Last Post: clemi555
  [Release] Bunker Plugin 1.3 archit 68 41,498 10-30-2013, 11:59
Last Post: clacki
  Help Modifying plugin maverigh 5 5,666 10-19-2013, 10:29
Last Post: Nekochan
Shocked [Request] Switch plugin axel-le-meilleur 6 5,176 10-19-2013, 06:59
Last Post: iRoNinja
Question Help Admin menu koren30 4 5,114 10-07-2013, 20:17
Last Post: Yamato
  [Release] Yurio Map Plugin Yurio 101 62,186 09-26-2013, 13:38
Last Post: First_Semyon
Brick [Release] v1.1 ChangeMap/NextMap Plugin without any configuration milchshake 23 18,619 09-23-2013, 13:18
Last Post: SgtLegend
  Help !say Plugin (like the !say from GodPlugin) Hallla 0 2,710 09-13-2013, 09:31
Last Post: Hallla
Rainbow [Release] MW3: Random Weapon Plugin V1 Nekochan 50 33,256 09-11-2013, 15:11
Last Post: EnVi Sweden Rocks

Forum Jump:


Users browsing this thread:
4 Guest(s)

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