Something's not really right in your code.
You return before you SendClientMessageToAll. .. So there's no way that would work. Try:
pawn Код:
public OnPlayerText(playerid, text[])
{
new pName[24];
GetPlayerName(playerid,pName,sizeof(pName));
new string[256];
if(gTeam[playerid]==TEAM_ROBBERS) format(string,sizeof(string),"{FFFFFF}%s(%d):%s",pName,playerid,text);
else if(gTeam[playerid]==TEAM_COPS) format(string,sizeof(string),"{0000FF}%s(%d):{FFFFFF}%s",pName,playerid,text);
else if(gTeam[playerid]==TEAM_MEDICS) format(string,sizeof(string),"{33AA33}%s(%d):{FFFFFF}%s",pName,playerid,text);
else if(gTeam[playerid]==TEAM_FIREFIGHTERS) format(string,sizeof(string),"{FF4500}%s(%d):{FFFFFF}%s",pName,playerid,text);
SendClientMessageToAll(COLOR_WHITE,string);
return 0;
}