24.11.2009, 09:23
I tried to do it that way, but i had a few problems when IG, my code is:
It compiles but when i do /o [chat] it comes up with both my name and the chat in that color, i just want to have the name in that color. At the start i have
which doesn't do anything. Is there anything that i have missed that could fix this?
Код:
if (PlayerInfo[playerid][pTeam]== 1)
{
SendClientMessageToAll(TEAM_CYAN_COLOR, string);
return 1;
}
else if (PlayerInfo[playerid][pTeam]== 2)
{
SendClientMessageToAll(TEAM_BLUE_COLOR, string);
return 1;
Код:
format(string, sizeof(string), "%s: %s", sendername, result);
printf("%s", string);

