Raised This Month: $ Target: $400
 0% 

Hide the print/command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danielo_o
Member
Join Date: Mar 2011
Old 06-30-2012 , 14:50   Hide the print/command
Reply With Quote #1

How to hide the command that's printed on the server chat if someone types /hi ?
It displays : Daniel : /hi
I tried return 0 at the command's public.
danielo_o is offline
Artifact
Veteran Member
Join Date: Jul 2010
Old 06-30-2012 , 15:35   Re: Hide the print/command
Reply With Quote #2

PHP Code:
#include <amxmodx>

#define PLUGIN ""
#define VERSION ""
#define AUTHOR ""


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /hi"cmdHi)
}

public 
cmdHi(id)
{
    
//something here
    
return PLUGIN_HANDLED

__________________
Artifact is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-30-2012 , 15:41   Re: Hide the print/command
Reply With Quote #3

return PLUGIN_HANDLED_MAIN is better on say commands.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
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 15:19.


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