02.06.2011, 16:20
Quote:
new gTeam[MAX_PLAYERS]; stock SendTeamMessage(playerid, color, string) { new teamid; teamid = gTeam[playerid]; for (new i; i < MAX_PLAYERS; i++) { if(gTeam[i] == teamid) { SendClientMessage(i, color, string); } } return 1; } |
This will work with any team id.
You can now use the function SendTeamMessage(playerid, color, string)
I might've scripted it wrong, did it blind without any pawno help.