How to make Team Chat?
#10

Would this work?
pawn Код:
stock SendTeamMessage(teamid, message[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && gTeam[i] == TEAM_BLUE)
        {
            SendClientMessage(i, TEAM_BLUE_COLOR, "Blue Team Chat"message);
        }
        else if(IsPlayerConnected(i) && gTeam[i] == TEAM_RED)
        {
            SendClientMessage(i, TEAM_RED_COLOR,"Red Team Chat"message);
        }
    }
    return 1;
}
the "Blue Team Chat" is intended for when the player talks it says that :P does that work?
Reply


Messages In This Thread
How to make Team Chat? - by NinjahZ - 08.08.2013, 22:12
Re: How to make Team Chat? - by Luis- - 08.08.2013, 22:16
Re: How to make Team Chat? - by NinjahZ - 08.08.2013, 22:19
Re: How to make Team Chat? - by Luis- - 08.08.2013, 22:22
Re: How to make Team Chat? - by NinjahZ - 08.08.2013, 22:23
Re: How to make Team Chat? - by Binx - 08.08.2013, 22:23
Re: How to make Team Chat? - by Luis- - 08.08.2013, 22:25
Re: How to make Team Chat? - by NinjahZ - 08.08.2013, 22:26
Re: How to make Team Chat? - by Luis- - 08.08.2013, 22:27
Re: How to make Team Chat? - by NinjahZ - 08.08.2013, 22:41

Forum Jump:


Users browsing this thread: 1 Guest(s)