pawn Код:
public OnPlayerText(playerid, text[])
{
if(gTeam[playerid] == TEAM_RED)
{
new team = gTeam[playerid];
new PName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PName, sizeof(PName));
format(string, sizeof(string), "[Team]: %s: %s", PName, text);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[i] == team)
{
SendClientMessage(i, color, string);
}
}
}
this want not work, because this is fantasy, but maybe this can help you a little