im try : containi() < --dos not work .... and contain() + equal() + equali()
the same thing (
Quote:
==========================
msg_TextMsg(77, 2, 0): + ME! has joined the game
=======================
==========================
msg_TextMsg(77, 1, 1): #Spec_Mode3
=======================
==========================
msg_TextMsg(77, 2, 0): * ME! switched to spectator mode
=======================
==========================
msg_TextMsg(77, 1, 1): Unknown command: -snipe
=======================
==========================
msg_TextMsg(77, 1, 1): #Spec_Mode3
=======================
==========================
msg_TextMsg(77, 1, 1): #Spec_Mode3
=======================
|
the code :
PHP Code:
public msg_TextMsg( msgid, dest, id )
{
static text_msg[ 128 ];
get_msg_arg_string( 2, text_msg, charsmax(text_msg) );
if (equal(text_msg, "Server limits teams to") != -1 )
{
server_print("========================== ^nmsg_TextMsg(%d, %d, %d): %s ^n======================= ", msgid, dest, id, text_msg);
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE;
}
and i try to chak :
PHP Code:
register_message(get_user_msgid("SayText"), "msg_TextMsg")
but it hiding all msg (chat + othere msgs)
__________________