TEAM CHAT
#9

pawn Код:
new string[256];
  new playername[MAX_PLAYER_NAME];
  if(text[0] == '!' && text[1] != 0)
  {
    GetPlayerName( playerid, playername, MAX_PLAYER_NAME );
    format( string, 128, "[Team-Chat] %s: %s", playername, text[1] );
    for(new i = 0; i < MAX_PLAYERS; i++ )
    {
      if( IsPlayerConnected(i) && gTeam[playerid] == gTeam[i] )
        SendClientMessage( i, COLOR_YELLOW, string );
    }
    return 0;
  }
Reply


Messages In This Thread
TEAM CHAT - by Twain32 - 08.10.2010, 16:57
Re: TEAM CHAT - by Jeffry - 08.10.2010, 19:08
Re: TEAM CHAT - by Brian_Furious - 08.10.2010, 19:56
Re: TEAM CHAT - by Jeffry - 08.10.2010, 19:57
Re: TEAM CHAT - by Brian_Furious - 08.10.2010, 20:00
Re: TEAM CHAT - by Twain32 - 25.10.2010, 02:12
Re: TEAM CHAT - by Miguel - 25.10.2010, 02:14
Re: TEAM CHAT - by Jeffry - 25.10.2010, 14:59
AW: TEAM CHAT - by Saitecx - 25.10.2010, 15:28

Forum Jump:


Users browsing this thread: 2 Guest(s)