Hiding commands in public chat
Hello,
In CS 1.6 AMXX How do I go about making it so that when people type the following commands in my server, the commands are only shown to that player, not the whole server. Also, I don't want the command to show up as having been typed. So: If a player types "thetime" or "/rank" I do not want the command to publicly show up in the server. I only want them to see the return from that command. I don't want other players to see "thetime". I want to do this for thetime, /rank, /top15, /hp, /nextmap, and /timeleft. Any help would be appreciated. I saw posts from searching about using PUBLIC_HANDLED and stuff like that, but I couldn't figure out what file to put that in or where to put it. Thanks in advance. |
Re: Hiding commands in public chat
Code:
Code:
I think the original plugin that uses thetime will be affected. If it be, then you need to add the client_print() in the code of your nextmap plugin. |
Re: Hiding commands in public chat
1 Attachment(s)
Try this:
PHP Code:
Code:
; Custom - Add 3rd party plugins hereLet me know if it works! - LegacyCode |
Re: Hiding commands in public chat
Quote:
Using yours, Legacy, it works in that it doesn't display the command being said. But for example, when someone types "thetime", it still displays the time to everyone in the server. I want it to only show up to the person who typed it. How would that be done? Also, instead of "/nextmap" and "/timeleft" I need it to work for "nextmap" and "timeleft" instead. |
Re: Hiding commands in public chat
Nevermind, I figured out how to do /nextmap and /timeleft myself, I just read yours and edited accordingly.
Anyone know how to make it so thetime, nextmap, timeleft only display the result to the typer? |
Re: Hiding commands in public chat
Quote:
|
Re: Hiding commands in public chat
Add on client_print or whatever prints the message, id instead of 0.
|
Re: Hiding commands in public chat
Where do I add that on? I'm trying to learn how to do some of this stuff, I'm not real good at it. Where should I look to add on client_print? And what does that do?
|
Re: Hiding commands in public chat
Quote:
|
Re: Hiding commands in public chat
thanks everyone, really appreciate it
|
| All times are GMT -4. The time now is 17:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.