Code:
public plugin_init() { register_message(get_user_msgid("SayText"), "MessageNameChange"); } public MessageNameChange(msgid, dest, receiver) { static info[64]; get_msg_arg_string(2, info, sizeof(info) - 1); if( !equali(info, "#Cstrike_Name_Change") ) return PLUGIN_CONTINUE; // If you want to block any message being shown (not player specific): return PLUGIN_HANDLED; // If you want to block the message when a specific player changes name static client; for( new i = 3; i < 5; i++ ) { get_msg_arg_string(i, info, sizeof(info) - 1); client = get_user_index(info); if( is_user_connected(client) ) break; client = 0; } return (client && /* block name change for 'client' */) ? PLUGIN_HANDLED : PLUGIN_CONTINUE; }
I thought so but i didn't know the "#Cstrike_Name_Change" part