#include <amxmodx>
public plugin_init(){
register_plugin("unknown", "unknown", "unknown");
register_clcmd("say", "Command_SayHandler");
register_clcmd("say_team", "Command_SayHandler");
}
public Command_SayHandler(id)
{
if (!is_user_connected(id)) return PLUGIN_HANDLED;
new message[128];
read_argv(0, message, charsmax(message));
read_args(message, charsmax(message));
remove_quotes(message);
trim(message);
log_amx(message);
if(containi(message, "подстрока") != -1)
{
}
return PLUGIN_CONTINUE;
}
// ---------------------
#include <amxmodx>
// ---------------------
public plugin_init()
{
register_clcmd("say", "SayHandler");
register_clcmd("say_team", "SayHandler");
}
public SayHandler(id)
{
if(!is_user_connected(id))
return PLUGIN_HANDLED_MAIN;
static chatMessage[180];
read_args(chatMessage, charsmax(chatMessage));
remove_quotes(chatMessage);
trim(chatMessage);
if(containi(chatMessage, "Подстрока") != -1)
{
// если найдено
return PLUGIN_HANDLED_MAIN;
}
return PLUGIN_HANDLED_MAIN;
}