TALK TO A CERTAIN TEAM. how?
#4

This uses gTeam, if you do not use gTeam, replace it for what you do use.

pawn Код:
public OnPlayerText(playerid, text[])
{
  if(text[0] == '!')
  {
    new MSG[128], Pname[24];
    GetPlayerName(playerid, Pname, 24);
    format(MSG, 128, "*** %s: %s", Pname, text);
    for(new i; i<MAX_PLAYERS; i++)
    {
      if(gTeam[i] == gTeam[playerid]) SendClientMessage(playerid, 0x33AA33AA, MSG);
    }
    return 0;
  }
  return 1;
}
Reply


Messages In This Thread
TALK TO A CERTAIN TEAM. how? - by KDlivest954 - 05.05.2010, 02:45
Re: TALK TO A CERTAIN TEAM. how? - by MWF2 - 05.05.2010, 03:00
Re: TALK TO A CERTAIN TEAM. how? - by KDlivest954 - 05.05.2010, 03:15
Re: TALK TO A CERTAIN TEAM. how? - by [HiC]TheKiller - 05.05.2010, 04:49

Forum Jump:


Users browsing this thread: 3 Guest(s)