TEAM CHAT
#2

Try:

pawn Код:
if(!strcmp(cmdtext, "/f", true))
{
    new string[128], Player[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Player, MAX_PLAYER_NAME);
    format(string, 128, "Team Chat: %s: %s", Player, cmdtext[2]);
    for(new i=0; i<MAX_PLAYERS; i++) if(gTeam[i]==TEAM_RED) SendClientMessage(i, COLOR_RED, string);
    return 1;
}
Reply


Messages In This Thread
TEAM CHAT - by Twain32 - 08.10.2010, 16:57
Re: TEAM CHAT - by Jeffry - 08.10.2010, 19:08
Re: TEAM CHAT - by Brian_Furious - 08.10.2010, 19:56
Re: TEAM CHAT - by Jeffry - 08.10.2010, 19:57
Re: TEAM CHAT - by Brian_Furious - 08.10.2010, 20:00
Re: TEAM CHAT - by Twain32 - 25.10.2010, 02:12
Re: TEAM CHAT - by Miguel - 25.10.2010, 02:14
Re: TEAM CHAT - by Jeffry - 25.10.2010, 14:59
AW: TEAM CHAT - by Saitecx - 25.10.2010, 15:28

Forum Jump:


Users browsing this thread: 1 Guest(s)