whether this code in the original plugin or your insert:
PHP Code:
public Say(id)
{
new Chat[256], Name[32], cChat[256];
read_args(Chat, 255);
remove_quotes(Chat);
get_user_name(id, Name, 31);
if(strlen(Chat) > 1)
{
formatex(cChat, 255, "^4[%s] ^3%s^1: %s", Rangs[Rang[id]], Name, Chat);
}
ColorChat(0, TEAM_COLOR, cChat);
return PLUGIN_HANDLED;
}
because uses #include <colorchat> and stock print_color(const id, const input[], any:...) and kinda me confusing that.
Try on this way:
in plugin_init
PHP Code:
register_message(get_user_msgid("SayText"),"handleSayText");
instead Say
PHP Code:
public handleSayText(msgId, msgDest, msgEnt){
new id = get_msg_arg_int(1);
if(is_user_connected(id)){
new szTmp[256],
szTmp2[256];
get_msg_arg_string(2, szTmp, charsmax(szTmp));
new szPrefix[64]
formatex(szPrefix,charsmax( szPrefix ),"^x04[%s]",Rangs[Rang[id]])
if(!equal(szTmp, "#Cstrike_Chat_All")){
add(szTmp2, charsmax(szTmp2), szPrefix);
add(szTmp2, charsmax(szTmp2), " ");
add(szTmp2, charsmax(szTmp2), szTmp);
}
else{
add(szTmp2, charsmax(szTmp2), szPrefix);
add(szTmp2, charsmax(szTmp2), "^x03 %s1^x01 : %s2");
}
set_msg_arg_string(2, szTmp2);
}
return PLUGIN_CONTINUE;
}
__________________