SRCDS Steam group


sm commands in the chatbox
#1
Hey I was wondering.
How would I take commands such as sm_noclip out of the chat box?
Reply
#2
Please explain "chatbox"
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#3
as in where people without mics type things in to talk in Team Fortress 2. (sorry should have explained that).
Reply
#4
I don't understand what you mean?

Are you talking about sourcemod commands like for example sm_admin..etc?

Or....are you trying to block certain words or phrases?

Or...are you talking about something with which you type a certain word and a sound plays...just guessing.

Can you explain in more detail what you desire in your question?
Earn Points, get Free Rewards with your Amazon Points!
Points2Shop

Reply
#5
I think he means how to make it possible to do a "say sm_xxxx" instead of just sm_xxxx in the console. So he doesn't have to open console but can type it in the normal chat.

I don't have a lot of experience with sourcemod but I think there is an option to make aliases somewhere (just don't know from the top of my head). What you would have to do is to link the phrase "sm_xxxx" to the console command "sm_xxxx".

If that's what you wanted to know.....
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#6
No what I mean is, If you toggle something... say, noclip, when you toggle it the chatbox shows "player toggled noclip on player" or something to that affect. I want to make it so it doesnt show up when you toggle noclip or any such commands because it spams the chatbox and you cant see what people are saying. Look at the Example picture below. It shows what the chatbox displays when you use a command such as noclip. that message is what I want to remove.


.bmp   Example.bmp (Size: 104.19 KB / Downloads: 11)
Reply
#7
Edit the sp file to remove the print to chat function call, and recompile.
[Image: sig_spam.JPG]
Reply
#8
Big Grin 
Ok i got it to work. Tyvm! Big Grin

*Edit
1 more problem. The Teleport plugin does not have a .sp file. I am not able to stop it from showing up in the chatbox. How would i do so?
Reply
#9
All sm plugins must have sp file or associated source code as per GPL... Check where ever you got the plugin from for source...
[Image: sig_spam.JPG]
Reply
#10
The site only has a .smx file.

http://forums.alliedmods.net/showthread.php?p=654482

Even though there is only a .smx file, it still displays a message when teleport is used.
Reply
#11
Oh okay...since your using sourcemod and you want people or nonadmins not to be able to see you execute things on admin...

Go to /cstrike/cfg/sourcemod and open sourcemod.cfg and go to this option.

Code:
// Specifies how admin activity should be relayed to users.  Add up the values
// below to get the functionality you want.
// 1: Show admin activity to non-admins anonymously.
// 2: If 1 is specified, admin names will be shown.
// 4: Show admin activity to admins anonymously.
// 8: If 4 is specified, admin names will be shown.
// 16: Always show admin names to root users.
// --
// Default: 13 (1+4+8)
sm_show_activity 13

Change sm_who_activity to 12. It will show admin activity to people who are admins only. People who don't have admin will be shown nothing....I guess...haven't tested..you should try.

To execute sourcemod commands, it's usually done by using this symbol " ! " . For example !kick [playername/steamid/ip].
Earn Points, get Free Rewards with your Amazon Points!
Points2Shop

Reply
#12
Oh wow, someone who is using my Teleport command. The source is available on the site, however it is now packaged as part of FuncommandsX found here: http://forums.alliedmods.net/showthread.php?t=75520
Reply
#13
Disable them in the server config Smile
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)