#include < amxmodx > public plugin_init( ) { register_message( get_user_msgid( "TextMsg" ) , "BlockMsg" ); } public BlockMsg( msgid , dest , id ) { static TextMsg[ 22 ]; get_msg_arg_string( 2 , TextMsg , charsmax( TextMsg ) ); if( equali( TextMsg , "#Game_teammate_attack" ) ) return PLUGIN_HANDLED; return PLUGIN_CONTINUE; }
下面是引用 ccw111 于 2012-07-11 01:30 发表的 : 复制程式 #include < amxmodx > public plugin_init( ) { register_message( get_user_msgid( "TextMsg" ) , "BlockMsg" ); } public BlockMsg( msgid , dest , id ) { static TextMsg[ 22 ]; get_msg_arg_string( 2 , TextMsg , charsmax( TextMsg ) ); if( equali( TextMsg , "#Game_teammate_attack" ) ) return PLUGIN_HANDLED; return PLUGIN_CONTINUE; }