How to make Team Chat?
#8

Quote:
Originally Posted by Luis-
Посмотреть сообщение
Here you go.
pawn Код:
stock SendTeamMessage(teamid, message[]) // This is a stock function, it pretty much allows you to use "SendTeamMessage(teamid, message[])"
{
    for(new i = 0; i < MAX_PLAYERS; i++) // This is a loop it loops through the total players that your server would allow.
    {
        if(IsPlayerConnected(i) && gTeam[i] == teamid) // This checks if the player is connected and if there team matches the teamid.
        {
            SendClientMessage(i, 0xFFFFFFFF, message); // This will send the message to the team.
        }
    }
    return 1;
}

Thank you Luis and everyone else +rep for your time and effort to help me out
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)