Next to the name (id number) show
#7

Quote:
Originally Posted by [GM]Sasino97
Посмотреть сообщение
All players Names Colors Are White Now How To change it?
i want Team_Pakistan 0 Green
Team_Japan 1 to Red
In your case, try this:
On top of the script:
pawn Код:
#define COLOR_GREEN 0x32CD32AA
#define COLOR_RED 0xFF0000AA
pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128], playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "%s(%d): %s",playername, playerid, text);
    if(gTeam[playerid] == Team_Pakistan) { SendClientMessageToAll(COLOR_GREEN, string); }
    if(gTeam[playerid] == Team_Japan) { SendClientMessageToAll(COLOR_RED, string); }
    return 0;
}
But you could also set the player's color to Red or Green, and use an other method like GetPlayerColor(playerid); instead of the "if(gTeam[....])" 'checks'.
Reply


Messages In This Thread
Next to the name (id number) show - by y@sin1 - 23.03.2011, 08:07
Re: Next to the name (id number) show - by xRyder - 23.03.2011, 08:15
Re: Next to the name (id number) show - by Biesmen - 23.03.2011, 08:16
Re: Next to the name (id number) show - by aircombat - 23.03.2011, 08:21
Re: Next to the name (id number) show - by Biesmen - 23.03.2011, 08:22
Re: Next to the name (id number) show - by aircombat - 23.03.2011, 09:03
Re: Next to the name (id number) show - by Biesmen - 23.03.2011, 09:06
Re: Next to the name (id number) show - by y@sin1 - 23.03.2011, 09:06
Re: Next to the name (id number) show - by aircombat - 23.03.2011, 09:11
Re: Next to the name (id number) show - by afizie98 - 22.08.2011, 14:50

Forum Jump:


Users browsing this thread: 2 Guest(s)