23.03.2011, 08:07
Next to the name (id number) show
public OnPlayerText(playerid, text[])
{
new pname[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, pname, sizeof(name));
format(str, sizeof(str)," %s (%d): %s ", name, playerid, text)
SendClientMEssageToAll(color, str)
return 1;
}
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);
SendClientMessageToAll(0xFFFFFFAA, string);
return 0;
}
SendClientMessageToAll(GetPlayerColor(playerid),string);
All players Names Colors Are White Now How To change it?
i want Team_Pakistan 0 Green Team_Japan 1 to Red |
#define COLOR_GREEN 0x32CD32AA
#define COLOR_RED 0xFF0000AA
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;
}