Need help with team message!
#3

At the bottom of the script put:
Код:
SendAmericaMessage(COLOR, text[]) {
  for(new i = 0; i < MAX_PLAYERS; i ++) {
  	if(IsPlayerConnected(i)) {
	  	if (gTeam[i] == TEAM_AMERICAN) {
      	SendClientMessage(i, COLOR, text);
      }
    }
  }
}
Then
Код:
SendAmericaMessage(playerid, COLOR_RED, "[text]");
I think it's something like that, Try it.
Reply


Messages In This Thread
Need help with team message! - by kevin433 - 28.12.2007, 18:23
Re: Need help with team message! - by Lewwy - 28.12.2007, 18:33
Re: Need help with team message! - by Larry - 28.12.2007, 18:38
Re: Need help with team message! - by Lewwy - 28.12.2007, 18:44
Re: Need help with team message! - by Grove - 28.12.2007, 18:50
Re: Need help with team message! - by kevin433 - 28.12.2007, 19:09
Re: Need help with team message! - by Grove - 28.12.2007, 19:30
Re: Need help with team message! - by cmg4life - 28.12.2007, 19:40
Re: Need help with team message! - by Lewwy - 28.12.2007, 19:41
Re: Need help with team message! - by kevin433 - 28.12.2007, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)