[NOT SOLVED!]Teamchat?
#2

Add this to your GM

pawn Код:
public OnPlayerText(playerid,text[])
{
    if(text[0] == '@')
    {
      new string[128];  GetPlayerName(playerid, string, sizeof(string));
      format(string, sizeof(string), "*Equip: %s: %s", string, text[1]);
        printf("%s", string);
      for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, GetPlayerColor(playerid), string);
        }
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
[NOT SOLVED!]Teamchat? - by _Vortex - 11.08.2009, 00:11
Re: Teamchat? - by agusfn20 - 11.08.2009, 00:13
Re: Teamchat? - by _Vortex - 11.08.2009, 00:56
Re: [NOT SOLVED!]Teamchat? - by agusfn20 - 11.08.2009, 02:01
Re: [NOT SOLVED!]Teamchat? - by _Vortex - 11.08.2009, 02:43
Re: [NOT SOLVED!]Teamchat? - by coole210 - 11.08.2009, 03:24
Re: [NOT SOLVED!]Teamchat? - by Joe Staff - 11.08.2009, 06:13

Forum Jump:


Users browsing this thread: 1 Guest(s)