AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hide the print/command (https://forums.alliedmods.net/showthread.php?t=188806)

danielo_o 06-30-2012 14:50

Hide the print/command
 
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.

Artifact 06-30-2012 15:35

Re: Hide the print/command
 
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



ConnorMcLeod 06-30-2012 15:41

Re: Hide the print/command
 
return PLUGIN_HANDLED_MAIN is better on say commands.


All times are GMT -4. The time now is 15:19.

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