Hi Mates.. I currently have a plugin that disables the chat (cs 1.6).
Code:
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say", "Cmd_Say" );
}
public Cmd_Say()
return PLUGIN_HANDLED_MAIN;
I want to register a command,
For example, amx_nochat. when i put "amx_nochat 1", the plugin activates. and when i put "amx_nochat 0", the plugin disactivates and chat is on once again.
i've been trying to edit the plugin, but i'm failing.
Can any mate help please?

Or just give me an example. i've been looking at other plugins but i still can't do it.
Thankss mates