Help with Team chat
#1

pawn Код:
CMD:t(playerid, params[])
{
    new string[128], aname[MAX_PLAYER_NAME];
    if(sscanf(params, "s[128]", string)) return SendClientMessage(playerid, 0xFF0000AA, "[USAGE]: /t <text>");
    {
    GetPlayerName(playerid, aname, sizeof(aname));
    format(string, sizeof(string), "[Team Chat]: %s: %s", aname, string);
        }
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(pClan[i] == 1 || pClan[i] == 2 || pClan[i] == 0)
                {
                SendClientMessage(i, 0xFF7F50AA, string);
                }
        }
        return 1;
}
Well, every team is sharing a single team chat? i mean, even players using another team are able to see that chat
Reply


Messages In This Thread
Help with Team chat - by GwENiko - 29.07.2013, 15:37
Re: Help with Team chat - by [XST]O_x - 29.07.2013, 15:40
Re: Help with Team chat - by Jstylezzz - 29.07.2013, 15:41
Re: Help with Team chat - by GwENiko - 29.07.2013, 15:45

Forum Jump:


Users browsing this thread: 1 Guest(s)