02.06.2011, 12:59
pawn Код:
//Usage
SendTeamMessage(15, 0xFFFFFFAA, "Hello team, we are team 15 and this text color is white, Awesum!");
pawn Код:
//Paste this somewhere in ur script but not in inside of any callbacks
stock SendTeamMessage(team, color, const message[]) //CyberGhost
{
for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
{
if(GetPlayerTeam(i) == team)
{
SendClientMessage(i, color, message);
}
}
return 1;
}