SA-MP Forums Archive
SetPlayerColour - 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)
+--- Thread: SetPlayerColour (/showthread.php?tid=416135)



SetPlayerColour - audriuxxx - 16.02.2013

Hi,

I want set player colour, but oher players, can't see that color in minimap.


Re: SetPlayerColour - Louris - 16.02.2013

public OnGameModeInit()
{
ShowPlayerMarkers(0);
return 1;
}


Re: SetPlayerColour - DaRk_RaiN - 16.02.2013

pawn Код:
SetPlayerColor(playerid,0xFFFFFF00);



Re: SetPlayerColour - leong124 - 16.02.2013

If you don't want them to see any player marker in minimap, the above are right. If you want them to see different colour, you may try this:
pawn Код:
for(new i = 0;i < MAX_PLAYERS;i++)//Can be replaced with foreach(Player,i) if you have it
    if(i != playerid)
        SetPlayerMarkerForPlayer(playerid,i,0x00000000);//Replace 0x00000000 with your needed colour



Re: SetPlayerColour - MP2 - 16.02.2013

No need for a loop.. Just set the alpha to 0!


Re: SetPlayerColour - leong124 - 16.02.2013

Quote:
Originally Posted by MP2
Посмотреть сообщение
No need for a loop.. Just set the alpha to 0!
I'm not suire what he means, hiding the player marker or change their colour so that they are different to the players' name colour.