SA-MP Forums Archive
SetPlayerColor - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetPlayerColor (/showthread.php?tid=83242)



SetPlayerColor - yamoto - 23.06.2009

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;



Re: SetPlayerColor - [HiC]TheKiller - 24.06.2009

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.


Re: SetPlayerColor - yamoto - 24.06.2009

i will try to delete it


Re: SetPlayerColor - zallomallo - 24.06.2009

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


Re: SetPlayerColor - yamoto - 24.06.2009

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


Re: SetPlayerColor - Joe Staff - 24.06.2009

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.