Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Hide commands
#1
Hi guys I am learning coding for C# and am making a basic script for my Server so that when people say something it displays in chat
eg
LOL is said by <playername>
in chat itll be like
<playername> said => Laugh Out Loud
Now I want to Hide What a players says i.e in this case i want to hideLOL
Anyone know how I can hide what a player says?
Reply

#2
(03-27-2013, 21:46)dhanin Wrote: Hi guys I am learning coding for C# and am making a basic script for my Server so that when people say soething it displays in chat eg
LOL is said by player
in console itll be like
<playername> said => Laugh Out Loud
Now I want to Hide What a players says i.e in this case LOL
Anyone know how I can hide what a player says?

do you mean that u want hide commands or chats?
because if u want hide a chat of a player u must take a look here: http://www.itsmods.com/forum/Thread-Rele...ocker.html

of u want hide a command what u type (example: !admin) than u must type in C# if (Message.StartsWith("!admin")) but than its !ADMIN not working if u want that u can type !ADMIN too than u can set in C# if (Message.ToLower().StartsWith("!admin"))

good luck, X-Track
Reply

#3
Thanks for replying so fast
Anyway I want to hide the command
Can you explain again cause I didnt quite get you here, I understood where we check what a use has inputted
Quote:but than its !ADMIN not working if u want that u can type !ADMIN too than u can set in C# if (Message.ToLower().StartsWith("!admin"))

good luck, X-Track
Reply

#4
CSHARP Code
  1. public override ChatType OnSay(string Message, ServerClient Client)
  2. {
  3. if (Message == "LOL")
  4. {
  5. ServerSay(Client.Name+" said LOL", true);
  6. return ChatType.ChatNone;
  7. }
  8. return ChatType.ChatContinue;
  9. }


I think you meant ChatType.ChatNone, in this example it will hide the message and show <clientname> said LOL
Reply

#5
Thanks got it Big Grin
Reply

#6
Lmao. Hja guys reply so fast i think that they are all time connected waiting for a new post to comment Smile
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  MW3 Hide WEAPONS [HARD] Tony. 7 7,172 10-09-2013, 15:16
Last Post: [HARD] Tony.
  [Request] Need a plugin that hides all ! Admin commands sylvester123 7 5,259 07-27-2013, 13:21
Last Post: Bandarigoda123
  how to remove commands in the chat ExoGamer* 6 4,450 07-20-2013, 09:24
Last Post: Pozzuh
  server commands [HARD] Tony. 0 2,079 06-05-2013, 19:44
Last Post: [HARD] Tony.
  Where can I find a list of scripting commands that correspond to ingame buttons? akillj 2 3,114 06-03-2013, 10:38
Last Post: Yamato
  [Release] Simple Math Commands Yamato 10 7,621 01-28-2013, 12:59
Last Post: Yamato
Question Help How do I host a Hide and Seek/Prop Hunt match? Narwhal900 2 3,987 01-04-2013, 01:27
Last Post: alvarogt95
  [Request] Hide and Seek (Mod/Plugin) JoSchaap 60 33,908 12-13-2012, 11:32
Last Post: aj021
  HELP ME WITH COMMANDS schorweg123 4 3,494 10-28-2012, 10:50
Last Post: d0h!
  HELP ME WITH COMMANDS schorweg123 1 2,557 10-28-2012, 10:46
Last Post: d0h!

Forum Jump:


Users browsing this thread:
5 Guest(s)

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