u can try this, i hope it will help u:
__________________________________________________ ______________
new hidechat[MAX_PLAYERS];
new to_others[MAX_CHATBUBBLE_LENGTH+1];
format(to_others,MAX_CHATBUBBLE_LENGTH,"Says: %s",text);
SetPlayerChatBubble(playerid,to_others,MESSAGE_COL OR,35.0,10000);
__________________________________________________ ______________
if (strcmp("/hidechat", cmdtext, true) == 0)
{
hidechat[playerid] == 1
}
if (strcmp("/unhidechat", cmdtext, true) == 0)
{
hidechat[playerid] == 0
}
if( hidechat[playerid] == 1)
{
SetPlayerChatBubble(playerid,to_others,MESSAGE_COL OR,0,0); // its important to add at the end two zero's
} else SetPlayerChatBubble(playerid,to_others,MESSAGE_COL OR,35.0,10000);
__________________________________________________ _______
i think u know the rest