Say commands are different.
"say" is the command, everything else is the first argument.
Code:
#include <amxmodx>
public plugin_init( ) {
register_plugin( "Report Player", "1.0", "BuckShot" )
register_clcmd( "say", "PlayerReport" )
}
public PlayerReport( id )
{
new FullMsg[ 192 ], Reason[ 161 ], Name[ 32 ], Command[ 32 ]
read_args( FullMsg, charsmax(FullMsg) )
strbreak(FullMsg, Command, charsmax(Command), FullMsg, charsmax(FullMsg))
if ( ! equali(Command, "/report") )
return;
strbreak(FullMsg, Name, charsmax(Name), Reason, charsmax(Reason))
server_print("%s, %s, %s", Command, Name, Reason);
}