How to make a team chat?
#3

Thanks a ton, the other chats work.
How about this team chat? I've edited in a bit, and other people can still see it.
pawn Код:
CMD:t(playerid, params[])
{
    new text[128];
    if (gTeam[playerid] == TEAM_CT)
    if(sscanf(params, "s[128]",text)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /t(eam) [Text]");
    format(text,sizeof(text),"[TEAM]%s: %s",GetName(playerid),params);
    foreach(Player, i)
    {
        if (gTeam[i] == TEAM_CT)
        {
            SendClientMessage(i,COLOR_LIGHTBLUE,text);
        }
    }
    new text1[128];
    if (gTeam[playerid] == TEAM_TE)
    if(sscanf(params, "s[128]",text1)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /t(eam) [Text]");
    format(text1,sizeof(text1),"[TEAM]%s: %s",GetName(playerid),params);
    foreach(Player, i)
    {
        if (gTeam[i] == TEAM_TE)
        {
            SendClientMessage(i,COLOR_RED,text1);
        }
    }
    return 1;
}
Reply


Messages In This Thread
How to make a team chat? - by rangerxxll - 11.03.2012, 21:36
Re: How to make a team chat? - by AstonDA-G - 11.03.2012, 21:39
Re: How to make a team chat? - by rangerxxll - 11.03.2012, 21:49
Re: How to make a team chat? - by kvsolga - 11.03.2012, 21:55
Re: How to make a team chat? - by AstonDA-G - 11.03.2012, 21:58
Re: How to make a team chat? - by [ABK]Antonio - 11.03.2012, 21:59
Re: How to make a team chat? - by rangerxxll - 11.03.2012, 22:00
Re: How to make a team chat? - by [ABK]Antonio - 11.03.2012, 22:03
Re: How to make a team chat? - by kvsolga - 11.03.2012, 22:07

Forum Jump:


Users browsing this thread: 2 Guest(s)