Team Chat Bug.
#2

Use this.
Код:
public OnPlayerText(playerid,text[])
{
	if(text[0] == '!')
	{
  new name[24], string[256];
  GetPlayerName(playerid, name, 24);
  format(string, sizeof(string), "*%s: %s", name, text[1]);
	printf("%s", string);

  for(new i = 0; i < MAX_PLAYERS; i++)
	{
 	if(IsPlayerConnected(i))
	{
 	if(gTeam[i] == gTeam[playerid])
  	SendClientMessage(i, GetPlayerColor(playerid), string);
		}
	}
	return 0;
}
	return 1;
}
You need to use gTeam. Or this didn't work
Reply


Messages In This Thread
Team Chat Bug. - by ~Dangun! - 27.01.2010, 11:30
Re: Team Chat Bug. - by leaNN! - 27.01.2010, 12:00
Re: Team Chat Bug. - by SlashPT - 27.01.2010, 12:51

Forum Jump:


Users browsing this thread: 1 Guest(s)