This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Hide entered message command?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
V I R U S
Senior Member
Join Date: Jul 2004
Location: Russia / Germany
Old 01-29-2010 , 14:13   Hide entered message command?
Reply With Quote #1

Hello all!

I'm looking for a way to hide the entered commands by users like /hp, /me, and others so, that they will not be shown in the chat, cause a lot of players are spamming all the chat full.

Thanks!
__________________
V I R U S is offline
Send a message via ICQ to V I R U S
V I R U S
Senior Member
Join Date: Jul 2004
Location: Russia / Germany
Old 01-30-2010 , 07:17   Re: Hide entered message command?
Reply With Quote #2

No one?
__________________
V I R U S is offline
Send a message via ICQ to V I R U S
Mevrael
Junior Member
Join Date: Jul 2008
Location: Riga, Latvia
Old 01-30-2010 , 07:26   Re: Hide entered message command?
Reply With Quote #3

register_clcmd("say /hp", "emptyFunction")

public emptyFunction() { return PLUGIN_HANDLED }

Last edited by Mevrael; 01-30-2010 at 09:35.
Mevrael is offline
Send a message via ICQ to Mevrael
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 01-30-2010 , 08:15   Re: Hide entered message command?
Reply With Quote #4

Open plugin where are those commands, find the function, and add on end of it return PLUGIN_HANDLED;
__________________
xPaw is offline
V I R U S
Senior Member
Join Date: Jul 2004
Location: Russia / Germany
Old 01-30-2010 , 11:49   Re: Hide entered message command?
Reply With Quote #5

Thanks to you! =))
__________________
V I R U S is offline
Send a message via ICQ to V I R U S
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode