My teamchat fails
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
  new string[256];
  new playername[MAX_PLAYER_NAME];
  if(text[0] == '!' && text[1] != 0)
  {
    GetPlayerName( playerid, playerame, 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, COLOR/*change me*/, string );
    }
    return 0;
  }

  return 1;
}
Reply


Messages In This Thread
My teamchat fails - by GTA_Rules - 28.03.2009, 08:55
Re: My teamchat fails - by pen_theGun - 28.03.2009, 09:27
Re: My teamchat fails - by GTA_Rules - 28.03.2009, 11:56
Re: My teamchat fails - by [M2S]moe - 28.03.2009, 12:56
Re: My teamchat fails - by GTA_Rules - 28.03.2009, 14:10
Re: My teamchat fails - by introzen - 28.03.2009, 14:20
Re: My teamchat fails - by GTA_Rules - 28.03.2009, 17:34
Re: My teamchat fails - by Backwardsman97 - 28.03.2009, 17:40
Re: My teamchat fails - by GTA_Rules - 28.03.2009, 21:14
Re: My teamchat fails - by pen_theGun - 28.03.2009, 23:07

Forum Jump:


Users browsing this thread: 1 Guest(s)