25.01.2012, 19:42
Hello guys,i've this code:
And a problem with the chat.
When someone uses chat,the player name color is ORANGE and not as set OnPlayerSpawn
The COP should have COLOR_BLUE in the chat as playername,and CIV COLOR_WHITE,but for both is ORANGE
pawn Код:
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == COP)
{
SetPlayerColor(playerid,COLOR_BLUE);
}
if(gTeam[playerid] == CIV)
{
SetPlayerColor(playerid,COLOR_WHITE);
}
SetPlayerInterior(playerid,0);
return 1;
}
When someone uses chat,the player name color is ORANGE and not as set OnPlayerSpawn
The COP should have COLOR_BLUE in the chat as playername,and CIV COLOR_WHITE,but for both is ORANGE