How to make Team Chat?
#6

pawn Код:
stock SendTeamMessage(teamid, message[]) // SendTeamMessage(1, string);
{
    for(new i = 0; i < MAX_PLAYERS; i++) // Loops through all the players.
    {
        if(IsPlayerConnected(i) && PlayerInfo[i][pTeam] == teamid)// If the player is connected and their 'pTeam' equals teamid then..
        {
            SendClientMessage(i, 0xFFFFFFFF, message); // Send the message
        }
    }
    return 1;
}
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)