07.09.2010, 10:20
Код:
public SetPlayerToFactionColor(playerid)
{
if(PlayerInfo[playerid][pFaction] != 255)
{
if(DynamicFactions[PlayerInfo[playerid][pFaction]][fUseColor])
{
if(DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
{
if(CopOnDuty[playerid] == 1)
{
SetPlayerColor(playerid,HexToInt(DynamicFactions[PlayerInfo[playerid][pFaction]][fColor]));
}
else
{
SetPlayerColor(playerid,COLOR_CIVILIAN);
}
}
else
{
SetPlayerColor(playerid,HexToInt(DynamicFactions[PlayerInfo[playerid][pFaction]][fColor]));
}
}
}
return 0;
}

