Try this :
PHP Code:
#include <amxmodx>
#include <fakemeta>
#define VERSION "0.0.1"
new gmsgSayText
new g_iMhSayText
public plugin_init()
{
register_plugin("name", VERSION, "ConnorMcLeod")
register_forward(FM_ClientUserInfoChanged, "ClientUserInfoChanged")
gmsgSayText = get_user_msgid("SayText")
}
public ClientUserInfoChanged()
{
g_iMhSayText = register_message(gmsgSayText, "Message_SayText")
}
public client_infochanged()
{
unregister_message(gmsgSayText, g_iMhSayText)
}
public Message_SayText(iMsgId, iMsgDest, id)
{
if( iMsgDest == MSG_ALL )
{
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
__________________