need help with chat color
#8

If you use no team system here a team system tutorial

https://sampwiki.blast.hk/wiki/PAWN_tutorial

If you use that then

pawn Код:
// Under includes
forward TeamMessgae(team, color, string[]);

//OnPlayerText
new string[128];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));

format(string, sizeof(string), "Gang: %s: %s", pname, text);
TeamMessage(gTeam[playerid], COLOR HERE, string);

// Put it somewhere but not in a OTHER public
public TeamMessage(team, color, string[])
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(gTeam[ii] == team)
        {
            SendClientMessage(i, color, string);
        }
    }
}
I don't know if it works
Reply


Messages In This Thread
need help with chat color - by YossiBz - 03.04.2012, 10:46
Re: need help with chat color - by Reklez - 03.04.2012, 10:50
Re: need help with chat color - by YossiBz - 03.04.2012, 10:57
Re: need help with chat color - by Reklez - 03.04.2012, 10:59
Re: need help with chat color - by YossiBz - 03.04.2012, 11:13
Re: need help with chat color - by sjvt - 03.04.2012, 11:20
Re: need help with chat color - by Jonny5 - 03.04.2012, 12:27
Re: need help with chat color - by sjvt - 03.04.2012, 12:29
Re: need help with chat color - by MrEnd - 03.04.2012, 15:00

Forum Jump:


Users browsing this thread: 1 Guest(s)