Quote:
Originally Posted by Silvers
PHP Code:
public OnPluginStart() { AddCommandListener(Command_Say, "say"); }
public Action:Command_Say(client, const String:command[], argc) { decl String:argstring[256]; GetCmdArg(1, argstring, sizeof(argstring)); if (argstring[0] == '/') return Plugin_Handled;
PrintToServer("%N : %s", client, argstring); return Plugin_Continue; }
This should do the trick.
|
Thank you very much silver! about the auto suppressing, i do not know why it failed to work, when i use addcommandlistener, it does not auto suppress the words that are behind /... because what i intended to do is to send my own message in my own style instead of the original message, the suppressing only works after my own message is sent and i used return Plugin_Continue, but i do not want to let the original message from displaying, so stopping it with return Plugin_Handled stops the suppressing of the silent command ONLY after my message is displayed, correct me if i'm wrong... anyway, other than the way of formatting message colours (like this: "\x03 this is an example."), because the codes from \x01 to \x08 does not include the team colour, blue when u are in survivor and red when u are in infected, is there any other way to add colours to your message?