Try this:
PHP Code:
#include <amxmodx>
#define PLUGIN "Message Replacer"
#define VERSION "1.0"
#define AUTHOR "AMXX Community"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message(get_user_msgid("TextMsg") ,"message_TextMsg")
}
public message_TextMsg( const MsgId, const MsgDest, const MsgEntity )
{
static message[32]
get_msg_arg_string(2, message, charsmax(message))
if(equal(message, "#Only_1_Team_Change"))
{
set_msg_arg_string(2, "You should know...only 1 Team change is allowed!")
}
}
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.