TEAMRADIO
#2

wrong..
pawn Код:
forward SendTeam1Message(color, string[]);
public SendTeam1Message(color, string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(gTeam[i] == TEAM1)
            {
                SendClientMessage(i, COLOR_BLUE, string);
            }
        }
    }
}

//Under the command

          new pname[MAX_PLAYER_NAME];
          new string[126];
      GetPlayerName(playerid,pname,sizeof(pname));
      format(string,sizeof(string),"[TEAM1] %s(%d): %s",pname,playerid,params);
      SendTeam1Message(COLOR_BLUE,string);
Reply


Messages In This Thread
TEAMRADIO - by cray1100 - 13.08.2013, 20:45
Re: TEAMRADIO - by Vanter - 13.08.2013, 20:53
Re: TEAMRADIO - by cray1100 - 13.08.2013, 23:24

Forum Jump:


Users browsing this thread: 1 Guest(s)