Team chat prob..
#2

Hi,
pawn Код:
if(text[0] == '!')
    {
        new name[24], string[256];
        GetPlayerName(playerid, name, 24);
        format(string, sizeof(string), "[Team Chat]%s: %s", name, text[1]);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(team[i] == team[playerid])
                SendClientMessage(i, GetPlayerColor(playerid), string);
            }
        }
        return 0;
    }
Customize it how you want

And I think that the problem is in the "string" .. You use the string name and string to text ..
Reply


Messages In This Thread
Team chat prob.. - by Steezy_ - 13.07.2013, 17:27
Re: Team chat prob.. - by Rohlik - 13.07.2013, 17:50
Re: Team chat prob.. - by Steezy_ - 13.07.2013, 17:54
Re: Team chat prob.. - by Rohlik - 13.07.2013, 17:58
Re: Team chat prob.. - by Steezy_ - 13.07.2013, 18:00
Re: Team chat prob.. - by Rohlik - 13.07.2013, 18:01

Forum Jump:


Users browsing this thread: 1 Guest(s)