SetPlayerColor
#1

Hello i wanted to do Faction with colored nickname when ppl see them and in TAB and i did that
but it dosent show ingame the colored nickname

pawn Код:
if(PlayerInfo[playerid][pLeader] == 7)//President spawn
        {
             SetPlayerColor(playerid,COLOR_RED);
            SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 3);
          SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
          PlayerInfo[playerid][pInt] = 3;
          PlayerInfo[playerid][pLocal] = 241;
          return 1;
Reply
#2

Quote:
Originally Posted by yamoto
Hello i wanted to do Faction with colored nickname when ppl see them and in TAB and i did that
but it dosent show ingame the colored nickname

pawn Код:
if(PlayerInfo[playerid][pLeader] == 7)//President spawn
        {
             SetPlayerColor(playerid,COLOR_RED);
           SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 3);
          SetPlayerPos(playerid, 356.2998,151.9914,1025.7891);
          PlayerInfo[playerid][pInt] = 3;
          PlayerInfo[playerid][pLocal] = 241;
          return 1;
What does the SetPlayerToTeamColor function do? I think that may be changing it to default.
Reply
#3

i will try to delete it
Reply
#4

If you delete it, you wouldn't be able to compile it, please paste it in here so we can see it.
Reply
#5

Quote:
Originally Posted by zallomallo
If you delete it, you wouldn't be able to compile it, please paste it in here so we can see it.
i was able to complie it but still i didnt saw the colored name
Reply
#6

He's using GF or PEN. SetPlayerToTeamColor sets that player's color to the color of his team. Some teams have this set on a timer, so you'll have to find that and comment it out or whatever.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)