[UNSOLVED]team chat isn't working
#1

When i am typing #hello it just says in main chat: FuTuRe(0): #hello instead of [Team Chat]FuTuRe(0): hello

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128], tmpname[MAX_PLAYER_NAME];
    if(text[0] == '#')
        {
      GetPlayerName(playerid, tmpname, sizeof(tmpname));
            if(gTeam[playerid] == TEAM_MEDIC)format(string, sizeof(string), "[Team Chat]%s(%d): %s", tmpname,playerid, text[1]); // Specify which gTeams you need this for.
          if(gTeam[playerid] == TEAM_COP)format(string, sizeof(string), "[Team Chat]%s(%d): %s", tmpname,playerid, text[1]); // Specify which gTeams you need this for.   for(new i = 0; i < MAX_PLAYERS; i++)
            {
              for(new i=0;i<MAX_PLAYERS;i++)
              {
                    if(IsPlayerConnected(i) && GetPlayerTeam(i) == GetPlayerTeam(playerid)) SendClientMessage(i, oranje, string);
                    return 0;
                }
             }
            return 0;
        }
    return 0;
}
Reply


Messages In This Thread
[UNSOLVED]team chat isn't working - by `FuTuRe- - 23.01.2010, 15:54
Re: team chat isn't working - by `FuTuRe- - 23.01.2010, 16:38
Re: [UNSOLVED]team chat isn't working - by DeathOnaStick - 23.01.2010, 16:42
Re: [UNSOLVED]team chat isn't working - by dice7 - 23.01.2010, 16:46
Re: [UNSOLVED]team chat isn't working - by bajskorv123 - 23.01.2010, 17:12
Re: [UNSOLVED]team chat isn't working - by `FuTuRe- - 23.01.2010, 17:16
Re: [UNSOLVED]team chat isn't working - by [dN]Eagle - 23.01.2010, 18:23

Forum Jump:


Users browsing this thread: 1 Guest(s)