Problem with teamchat!
#2

(not tested) Try this out:

pawn Код:
new string[256];
        new playername[MAX_PLAYER_NAME];
        if(text[0] == '!' && text[1] != 0)
        {
            GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
            format(string,128,"[Team-Chat] %s: {FFFFFF}%s", playername,text[1] ); // added ' {FFFFFF} ' - white
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i) && gTeam[playerid] == gTeam[i])
                    SendClientMessage(i,GetPlayerColor(playerid),string); // added GetPlayerColor(playerid)
            }
            return 0;
     }
Reply


Messages In This Thread
Problem with teamchat! - by Twisted_Insane - 31.03.2012, 13:10
Re: Problem with teamchat! - by vyper - 31.03.2012, 14:18
Re: Problem with teamchat! - by sjvt - 31.03.2012, 14:31
Re: Problem with teamchat! - by Twisted_Insane - 31.03.2012, 14:59
Re: Problem with teamchat! - by Randyy - 31.03.2012, 15:02
Re: Problem with teamchat! - by Twisted_Insane - 31.03.2012, 15:08
Re: Problem with teamchat! - by Randyy - 31.03.2012, 15:14
AW: Problem with teamchat! - by Nero_3D - 31.03.2012, 15:16
Re: Problem with teamchat! - by Randyy - 31.03.2012, 15:19
Re: Problem with teamchat! - by Twisted_Insane - 31.03.2012, 15:25

Forum Jump:


Users browsing this thread: 2 Guest(s)