SA-MP Forums Archive
When players join they are coloured and map iconned, Why? - 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: When players join they are coloured and map iconned, Why? (/showthread.php?tid=299550)



When players join they are coloured and map iconned, Why? - Dokins - 26.11.2011

As the title says.....I'm not setting any PlayerColor.

Can someone tell me why? When another player comes in they are a random colour, it can be purple and there are also map icons as to where they are.


Re: When players join they are coloured and map iconned, Why? - [MG]Dimi - 26.11.2011

Colors are set randomly if you don't have SetPlayerColor(playerid,color); under OnPlayerConnect(playerid)


Re: When players join they are coloured and map iconned, Why? - Unte99 - 26.11.2011

pawn Код:
// OnGameModeInit
ShowPlayerMarkers(0); // 1 - Will show the player markers, 0 - will not show player markers.
I think that's what you need.


Re: When players join they are coloured and map iconned, Why? - [MG]Dimi - 26.11.2011

That will hide radar blips from radar. To set Player COlor to same do it like this
pawn Код:
public OnPlayerConnect(playerid)
{
     SetPlayerColor(playerid 0xFFFFFFFF); //replace it with your color code.
     return 1;
}



Re: When players join they are coloured and map iconned, Why? - sabretur - 26.11.2011

Quote:
Originally Posted by [MG]Dimi
Посмотреть сообщение
Colors are set randomly if you don't have SetPlayerColor(playerid,color); under OnPlayerConnect(playerid)
Colors aren't set randomly, it set by player's ID.


Re: When players join they are coloured and map iconned, Why? - [MG]Dimi - 26.11.2011

Why are "random" if you don't set them. I'm thinking on another random