25.03.2012, 13:23
If you set your teams like that (https://sampwiki.blast.hk/wiki/SetPlayerTeam) it could be solved like that:
pawn Код:
new team = GetPlayerTeam(playerid); // Checking in which team the player executing the command is.
for(new i; i < MAX_PLAYERS; i++) // Looping through all players.
{
if(GetPlayerTeam(i) == team) // Checking if player i is apart of the same team.
{
SendClientMessage(i, YOUR_COLOR, "This is a message to my team."); // If true, send the message.
}
}

