PHP Code:
public Action CP_OnChatMessage(int& iAuthor, ArrayList hRecipients, char[] sFlagString, char[] sName, char[] sMessage, bool& bProcessColours, bool& bRemoveColours)
{
if(!IsValidClient(iAuthor))
{
return Plugin_Continue;
}
bProcessColours = false;
char sNameBuffer[256];
Format(sNameBuffer, sizeof(sNameBuffer), " ");
if(g_iTagFlags[iAuthor] & TAG_LOADED && !(g_iTagFlags[iAuthor] & TAG_HIDECUSTOM))
{
Format(sNameBuffer, sizeof(sNameBuffer), "%s{default}[%s{default}] ", sNameBuffer, g_sTagFormatString[iAuthor]);
}
switch(GetClientTeam(iAuthor))
{
case 2:
{
Format(sNameBuffer, sizeof(sNameBuffer), "%s{yellow}%N", sNameBuffer, iAuthor);
}
case 3:
{
Format(sNameBuffer, sizeof(sNameBuffer), "%s{blue}%N", sNameBuffer, iAuthor);
}
default:
{
Format(sNameBuffer, sizeof(sNameBuffer), "%s{default}%N", sNameBuffer, iAuthor);
}
}
Format(sMessage, MAXLENGTH_MESSAGE, "{default}%s", sMessage);
CProcessVariables(sNameBuffer, sizeof(sNameBuffer));
CProcessVariables(sMessage, MAXLENGTH_MESSAGE);
Format(sName, MAXLENGTH_NAME, sNameBuffer);
return Plugin_Changed;
}
Is there anything wrong with his @Red?
In server console it appears, but in chat and console there are no messages. I've made sure there are no plugins with say hooks etc. I can only see my own messsages, and in some cases the chat is just default.