Try that
PHP Code:
#include <amxmodx>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message(get_user_msgid("TextMsg") , "block_message")
}
public block_message()
{
if(get_msg_argtype(2) == ARG_STRING)
{
new szValue[64]
get_msg_arg_string(2 , szValue , charsmax(szValue))
if(containi(szValue , "has joined") != -1)
{
return PLUGIN_HANDLED
}
}
return PLUGIN_CONTINUE
}
__________________