05.10.2011, 00:41
that was just a typo from copying and pasting it over, it isnt like that in the script....i also found this peice of code in the script
this looks like the area where player colors are being defined yet i changed the colors on these aswell and everyones name is still white...i can clearly see that /duty, medic, fireman etc are supposed to have different colors but everyones name stays white....
pawn Код:
public SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pWanted] == 0)
{
SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
}
else
{
SetPlayerColor(playerid, 0xFF990000);
}
if(PlayerInfo[playerid][pDuty] == 1)
{
if(IsAFreecop(playerid)) { SetPlayerColor(playerid, 0xa9c4e400); }
if(PlayerInfo[playerid][pRank] == 1) { SetPlayerColor(playerid,0x33CCFF00); }
else if(PlayerInfo[playerid][pRank] == 2) { SetPlayerColor(playerid,0x2641FE00); }
else if(PlayerInfo[playerid][pRank] == 3) { SetPlayerColor(playerid,0x2641FE00); }
else if(PlayerInfo[playerid][pRank] == 4) { SetPlayerColor(playerid,0x2641FE00); }
else if(PlayerInfo[playerid][pRank] == 5) { SetPlayerColor(playerid,0x3333CC00); }
else if(PlayerInfo[playerid][pRank] == 6) { SetPlayerColor(playerid,0x3333CC00); }
else if(PlayerInfo[playerid][pRank] == 7) { SetPlayerColor(playerid,0x3333CC00); }
else if(PlayerInfo[playerid][pRank] == 8) { SetPlayerColor(playerid,0x3333CC00); }
}
if(JobDuty[playerid] == 1)
{
if(IsAFiremen(playerid)) { SetPlayerColor(playerid, 0xAA333300); }
if(IsAMedic(playerid)) { SetPlayerColor(playerid, 0xFF828200); }
}
if(PlayerInfo[playerid][pAdminDuty] == 1)
{
if(PlayerInfo[playerid][pAdmin] >= 1) { SetPlayerColor(playerid,0xFF66FF00); }
if(PlayerInfo[playerid][pAdmin] >= 3) { SetPlayerColor(playerid,0xFF550000); }
if(PlayerInfo[playerid][pAdmin] >= 6) { SetPlayerColor(playerid,0xFF000000); }
}
if(PlayerInfo[playerid][pTesterDuty] == 1)
{
if(PlayerInfo[playerid][pTester] == 1) { SetPlayerColor(playerid,0x00660000); }
if(PlayerInfo[playerid][pTester] == 2) { SetPlayerColor(playerid,0x00880000); }
if(PlayerInfo[playerid][pTester] == 3) { SetPlayerColor(playerid,0x00AA0000); }
}
if (TransportDuty[playerid] >= 1)
{
SetPlayerColor(playerid, 0x00FF0000);
}
if (PlayerInfo[playerid][pJob] == 3)
{
SetPlayerColor(playerid, 0xFF33FF00);
}
}
}

