Need team chat for my tdm!!!!!!!PLEASE
#5

Код:
//------------------------------------------------------------------------------------------------------

public OnPlayerText(playerid, text[])
{
  new string[256];
  new playername[MAX_PLAYER_NAME];
  if(text[0] == '!' && text[1] != 0) 
  {
    GetPlayerName( playerid, playername, MAX_PLAYER_NAME );
    format( string, 128, "[Team] %s: %s", playername, text[1] );
    for(new i = 0; i < MAX_PLAYERS; i++ )
    {
      if( IsPlayerConnected(i) && gTeam[playerid] == gTeam[i] )
        SendClientMessage( i, UrColor, string );
    }
    return 0;
  }

  return 1;
}
//------------------------------------------------------------------------------------------------------
u just need to replace "UrColor" to the color u wanna use like : COLOR_RED , COLOR_GREEN , but they need to be defined
Reply


Messages In This Thread
Need team chat for my tdm!!!!!!!PLEASE - by Nexotronix - 27.01.2010, 16:48
Re: Need team chat for my tdm!!!!!!!PLEASE - by Cry_Wolf - 27.01.2010, 16:53
Re: Need team chat for my tdm!!!!!!!PLEASE - by Nexotronix - 27.01.2010, 16:54
Re: Need team chat for my tdm!!!!!!!PLEASE - by deather - 27.01.2010, 17:09
Re: Need team chat for my tdm!!!!!!!PLEASE - by hvampire - 04.02.2010, 21:42

Forum Jump:


Users browsing this thread: 1 Guest(s)