08.08.2013, 22:41
Would this work?
the "Blue Team Chat" is intended for when the player talks it says that :P does that work?
pawn Код:
stock SendTeamMessage(teamid, message[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gTeam[i] == TEAM_BLUE)
{
SendClientMessage(i, TEAM_BLUE_COLOR, "Blue Team Chat"message);
}
else if(IsPlayerConnected(i) && gTeam[i] == TEAM_RED)
{
SendClientMessage(i, TEAM_RED_COLOR,"Red Team Chat"message);
}
}
return 1;
}