08.08.2013, 22:23
pawn Код:
stock SendTeamMessage(teamid, message[]) // SendTeamMessage(1, string);
{
for(new i = 0; i < MAX_PLAYERS; i++) // Loops through all the players.
{
if(IsPlayerConnected(i) && PlayerInfo[i][pTeam] == teamid)// If the player is connected and their 'pTeam' equals teamid then..
{
SendClientMessage(i, 0xFFFFFFFF, message); // Send the message
}
}
return 1;
}